net.minecraft.world.level.block.entity

public class BeaconBlockEntity

extends BlockEntity implements MenuProvider, Nameable

All mapped superinterfaces:

MenuProvider, MenuConstructor, Nameable

dtv
net.minecraft.world.level.block.entity.BeaconBlockEntity
net.minecraft.class_2580
net.minecraft.block.entity.BeaconBlockEntity
net.minecraft.world.level.block.entity.TileEntityBeacon

Field summary

Modifier and TypeField
private static final int
f
MAX_LEVELS
field_31304
field_31304
public static final List<List<Holder<MobEffect>>>
a
BEACON_EFFECTS
field_11801
EFFECTS_BY_LEVEL
private static final Set<Holder<MobEffect>>
g
VALID_EFFECTS
field_11798
EFFECTS
public static final int
b
DATA_LEVELS
field_31300
LEVEL_PROPERTY_INDEX
public static final int
c
DATA_PRIMARY
field_31301
PRIMARY_PROPERTY_INDEX
public static final int
d
DATA_SECONDARY
field_31302
SECONDARY_PROPERTY_INDEX
public static final int
e
NUM_DATA_VALUES
field_31303
PROPERTY_COUNT
private static final int
h
BLOCKS_CHECK_PER_TICK
field_31305
field_31305
private static final Component
i
DEFAULT_NAME
field_40328
CONTAINER_NAME_TEXT
private static final String
j
TAG_PRIMARY
field_45784
PRIMARY_EFFECT_NBT_KEY
private static final String
k
TAG_SECONDARY
field_45785
SECONDARY_EFFECT_NBT_KEY
List<BeaconBlockEntity$BeaconBeamSection>
l
beamSections
field_19177
beamSegments
private List<BeaconBlockEntity$BeaconBeamSection>
m
checkingBeamSections
field_19178
field_19178
int
q
levels
field_11803
level
private int
r
lastCheckY
field_19179
minY
Holder<MobEffect>
s
primaryPower
field_11795
primary
Holder<MobEffect>
t
secondaryPower
field_11799
secondary
private Component
u
name
field_11793
customName
private LockCode
v
lockKey
field_17377
lock
private final ContainerData
w
dataAccess
field_17378
propertyDelegate

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
static Holder<MobEffect>
a(jr<btp> arg0)
filterEffect(Holder<MobEffect> arg0)
method_53251(class_6880<class_1291> arg0)
getEffectOrNull(RegistryEntry<StatusEffect> effect)
public static void
a(dgj arg0, ji arg1, dwy arg2, dtv arg3)
tick(Level arg0, BlockPos arg1, BlockState arg2, BeaconBlockEntity arg3)
method_16896(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_2580 arg3)
tick(World world, BlockPos pos, BlockState state, BeaconBlockEntity blockEntity)
private static int
a(dgj arg0, int arg1, int arg2, int arg3)
updateBase(Level arg0, int arg1, int arg2, int arg3)
method_20293(class_1937 arg0, int arg1, int arg2, int arg3)
updateLevel(World world, int x, int y, int z)
public void
av_()
setRemoved()
method_11012()
markRemoved()
private static void
a(dgj arg0, ji arg1, int arg2, jr<btp> arg3, jr<btp> arg4)
applyEffects(Level arg0, BlockPos arg1, int arg2, Holder<MobEffect> arg3, Holder<MobEffect> arg4)
method_10940(class_1937 arg0, class_2338 arg1, int arg2, class_6880<class_1291> arg3, class_6880<class_1291> arg4)
applyPlayerEffects(World world, BlockPos pos, int beaconLevel, RegistryEntry<StatusEffect> primaryEffect, RegistryEntry<StatusEffect> secondaryEffect)
public static void
a(dgj arg0, ji arg1, avz arg2)
playSound(Level arg0, BlockPos arg1, SoundEvent arg2)
method_10938(class_1937 arg0, class_2338 arg1, class_3414 arg2)
playSound(World world, BlockPos pos, SoundEvent sound)
public List<BeaconBlockEntity$BeaconBeamSection>
b()
getBeamSections()
method_10937()
getBeamSegments()
public ClientboundBlockEntityDataPacket
c()
getUpdatePacket()
method_38236()
toUpdatePacket()
public CompoundTag
a(jt$a arg0)
getUpdateTag(HolderLookup$Provider arg0)
method_16887(class_7225$class_7874 arg0)
toInitialChunkDataNbt(RegistryWrapper$WrapperLookup arg0)
private static void
a(tq arg0, String arg1, jr<btp> arg2)
storeEffect(CompoundTag arg0, String arg1, Holder<MobEffect> arg2)
method_53253(class_2487 arg0, String arg1, class_6880<class_1291> arg2)
writeStatusEffect(NbtCompound nbt, String key, RegistryEntry<StatusEffect> effect)
private static Holder<MobEffect>
a(tq arg0, String arg1)
loadEffect(CompoundTag arg0, String arg1)
method_53252(class_2487 arg0, String arg1)
readStatusEffect(NbtCompound nbt, String key)
protected void
a(tq arg0, jt$a arg1)
loadAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11014(class_2487 arg0, class_7225$class_7874 arg1)
readNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
protected void
b(tq arg0, jt$a arg1)
saveAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11007(class_2487 arg0, class_7225$class_7874 arg1)
writeNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
public void
a(wp arg0)
setCustomName(Component arg0)
method_10936(class_2561 arg0)
setCustomName(Text customName)
public Component
an()
getCustomName()
method_5797()
getCustomName()
public AbstractContainerMenu
createMenu(int arg0, cox arg1, coy arg2)
createMenu(int arg0, Inventory arg1, Player arg2)
createMenu(int arg0, class_1661 arg1, class_1657 arg2)
createMenu(int arg0, PlayerInventory arg1, PlayerEntity arg2)
public Component
p_()
getDisplayName()
method_5476()
getDisplayName()
public Component
al()
getName()
method_5477()
getName()
protected void
a(dua$b arg0)
applyImplicitComponents(BlockEntity$DataComponentInput arg0)
method_57568(class_2586$class_9473 arg0)
readComponents(BlockEntity$ComponentsAccess arg0)
protected void
a(kr$a arg0)
collectImplicitComponents(DataComponentMap$Builder arg0)
method_57567(class_9323$class_9324 arg0)
addComponents(ComponentMap$Builder arg0)
public void
a(tq arg0)
removeComponentsFromTag(CompoundTag arg0)
method_57569(class_2487 arg0)
removeFromCopiedStackNbt(NbtCompound arg0)
public void
a(dgj arg0)
setLevel(Level arg0)
method_31662(class_1937 arg0)
setWorld(World arg0)