net.minecraft.world.level.block.entity

public class BeaconBlockEntity

extends BlockEntity implements MenuProvider, Nameable

All mapped superinterfaces:

MenuProvider, MenuConstructor, Nameable

dcq
net.minecraft.world.level.block.entity.BeaconBlockEntity
net.minecraft.class_2580
net.minecraft.block.entity.BeaconBlockEntity
net.minecraft.src.C_1981_
net.minecraft.world.level.block.entity.TileEntityBeacon

Field summary

Modifier and TypeField
private static final int
f
MAX_LEVELS
field_31304
field_31304
f_155085_
public static final MobEffect[][]
a
BEACON_EFFECTS
field_11801
EFFECTS_BY_LEVEL
f_58646_
private static final Set<MobEffect>
g
VALID_EFFECTS
field_11798
EFFECTS
f_58647_
public static final int
b
DATA_LEVELS
field_31300
LEVEL_PROPERTY_INDEX
f_155081_
public static final int
c
DATA_PRIMARY
field_31301
PRIMARY_PROPERTY_INDEX
f_155082_
public static final int
d
DATA_SECONDARY
field_31302
SECONDARY_PROPERTY_INDEX
f_155083_
public static final int
e
NUM_DATA_VALUES
field_31303
PROPERTY_COUNT
f_155084_
private static final int
h
BLOCKS_CHECK_PER_TICK
field_31305
field_31305
f_155086_
private static final Component
i
DEFAULT_NAME
field_40328
CONTAINER_NAME_TEXT
f_243996_
private static final String
j
TAG_PRIMARY
field_45784
PRIMARY_EFFECT_NBT_KEY
f_291334_
private static final String
k
TAG_SECONDARY
field_45785
SECONDARY_EFFECT_NBT_KEY
f_291760_
List<BeaconBlockEntity$BeaconBeamSection>
l
beamSections
field_19177
beamSegments
f_58648_
private List<BeaconBlockEntity$BeaconBeamSection>
m
checkingBeamSections
field_19178
field_19178
f_58649_
int
n
levels
field_11803
level
f_58650_
private int
r
lastCheckY
field_19179
minY
f_58651_
MobEffect
s
primaryPower
field_11795
primary
f_58652_
MobEffect
t
secondaryPower
field_11799
secondary
f_58653_
private Component
u
name
field_11793
customName
f_58654_
private LockCode
v
lockKey
field_17377
lock
f_58655_
private final ContainerData
w
dataAccess
field_17378
propertyDelegate
f_58656_

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
static MobEffect
a(bib arg0)
filterEffect(MobEffect arg0)
method_53251(class_1291 arg0)
getEffectOrNull(StatusEffect effect)
m_294441_(C_496_ p_300420_)
public static void
a(cpv arg0, gw arg1, dfj arg2, dcq 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)
m_155107_(C_1596_ p_155108_, C_4675_ p_155109_, C_2064_ p_155110_, C_1981_ p_155111_)
private static int
a(cpv 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)
m_155092_(C_1596_ p_155093_, int p_155094_, int p_155095_, int p_155096_)
public void
at_()
setRemoved()
method_11012()
markRemoved()
m_7651_()
private static void
a(cpv arg0, gw arg1, int arg2, bib arg3, bib arg4)
applyEffects(Level arg0, BlockPos arg1, int arg2, MobEffect arg3, MobEffect arg4)
method_10940(class_1937 arg0, class_2338 arg1, int arg2, class_1291 arg3, class_1291 arg4)
applyPlayerEffects(World world, BlockPos pos, int beaconLevel, StatusEffect primaryEffect, StatusEffect secondaryEffect)
m_155097_(C_1596_ p_155098_, C_4675_ p_155099_, int p_155100_, C_496_ p_155101_, C_496_ p_155102_)
public static void
a(cpv arg0, gw arg1, apc 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)
m_155103_(C_1596_ p_155104_, C_4675_ p_155105_, C_123_ p_155106_)
public List<BeaconBlockEntity$BeaconBeamSection>
c()
getBeamSections()
method_10937()
getBeamSegments()
m_58702_()
public ClientboundBlockEntityDataPacket
f()
getUpdatePacket()
method_38236()
toUpdatePacket()
m_58483_()
public CompoundTag
as_()
getUpdateTag()
method_16887()
toInitialChunkDataNbt()
m_5995_()
private static void
a(qw arg0, String arg1, bib arg2)
storeEffect(CompoundTag arg0, String arg1, MobEffect arg2)
method_53253(class_2487 arg0, String arg1, class_1291 arg2)
writeStatusEffect(NbtCompound nbt, String key, StatusEffect effect)
m_295548_(C_4917_ p_299457_, String p_297212_, C_496_ p_297266_)
private static MobEffect
a(qw arg0, String arg1)
loadEffect(CompoundTag arg0, String arg1)
method_53252(class_2487 arg0, String arg1)
readStatusEffect(NbtCompound nbt, String key)
m_296015_(C_4917_ p_298536_, String p_301201_)
public void
a(qw arg0)
load(CompoundTag arg0)
method_11014(class_2487 arg0)
readNbt(NbtCompound arg0)
m_142466_(C_4917_ arg0)
protected void
b(qw arg0)
saveAdditional(CompoundTag arg0)
method_11007(class_2487 arg0)
writeNbt(NbtCompound arg0)
m_183515_(C_4917_ arg0)
public void
a(tl arg0)
setCustomName(Component arg0)
method_10936(class_2561 arg0)
setCustomName(Text customName)
m_58681_(C_4996_ arg0)
public Component
ad()
getCustomName()
method_5797()
getCustomName()
m_7770_()
public AbstractContainerMenu
createMenu(int arg0, cbt arg1, cbu arg2)
createMenu(int arg0, Inventory arg1, Player arg2)
createMenu(int arg0, class_1661 arg1, class_1657 arg2)
createMenu(int arg0, PlayerInventory arg1, PlayerEntity arg2)
m_7208_(int p_58697_, C_1140_ p_58698_, C_1141_ arg2)
public Component
N_()
getDisplayName()
method_5476()
getDisplayName()
m_5446_()
public Component
ab()
getName()
method_5477()
getName()
m_7755_()
public void
a(cpv arg0)
setLevel(Level arg0)
method_31662(class_1937 arg0)
setWorld(World arg0)
m_142339_(C_1596_ arg0)