JavaScript is disabled on your browser.
Nested Class Summary
Nested Classes
Field Summary
Fields
private static final int
private static final int
private static final Text
(package private) int
static final int
private int
static final int
static final int
static final int
Constructor Summary
Constructors
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
private static void
Returns the custom name of this object, or null if there is none.
Returns the title of this screen handler; will be a part of the open
screen packet sent to the client.
Returns the name of this object.
void
static void
void
void
void
Sets the world the block entity belongs to.
static void
Returns the serialized state of this block entity that is observable by clients.
private static int
protected void
Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval , copyItemDataRequiresOperator , createFromNbt , createNbt , createNbtWithId , createNbtWithIdentifyingData , getCachedState , getPos , getType , getWorld , hasWorld , isRemoved , markDirty , markDirty , onSyncedBlockEvent , populateCrashReport , posFromNbt , setCachedState , setStackNbt , toUpdatePacket , writeIdToNbt
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Field Details
field_31304
private static final int field_31304
See Also:
Mappings:
Namespace
Name
Mixin selector
official
f
Lcvh;f:I
intermediary
field_31304
Lnet/minecraft/class_2580;field_31304:I
named
field_31304
Lnet/minecraft/block/entity/BeaconBlockEntity;field_31304:I
EFFECTS_BY_LEVEL
Mappings:
Namespace
Name
Mixin selector
official
a
Lcvh;a:[[Lbcp;
intermediary
field_11801
Lnet/minecraft/class_2580;field_11801:[[Lnet/minecraft/class_1291;
named
EFFECTS_BY_LEVEL
Lnet/minecraft/block/entity/BeaconBlockEntity;EFFECTS_BY_LEVEL:[[Lnet/minecraft/entity/effect/StatusEffect;
EFFECTS
Mappings:
Namespace
Name
Mixin selector
official
g
Lcvh;g:Ljava/util/Set;
intermediary
field_11798
Lnet/minecraft/class_2580;field_11798:Ljava/util/Set;
named
EFFECTS
Lnet/minecraft/block/entity/BeaconBlockEntity;EFFECTS:Ljava/util/Set;
LEVEL_PROPERTY_INDEX
public static final int LEVEL_PROPERTY_INDEX
See Also:
Mappings:
Namespace
Name
Mixin selector
official
b
Lcvh;b:I
intermediary
field_31300
Lnet/minecraft/class_2580;field_31300:I
named
LEVEL_PROPERTY_INDEX
Lnet/minecraft/block/entity/BeaconBlockEntity;LEVEL_PROPERTY_INDEX:I
PRIMARY_PROPERTY_INDEX
public static final int PRIMARY_PROPERTY_INDEX
See Also:
Mappings:
Namespace
Name
Mixin selector
official
c
Lcvh;c:I
intermediary
field_31301
Lnet/minecraft/class_2580;field_31301:I
named
PRIMARY_PROPERTY_INDEX
Lnet/minecraft/block/entity/BeaconBlockEntity;PRIMARY_PROPERTY_INDEX:I
SECONDARY_PROPERTY_INDEX
public static final int SECONDARY_PROPERTY_INDEX
See Also:
Mappings:
Namespace
Name
Mixin selector
official
d
Lcvh;d:I
intermediary
field_31302
Lnet/minecraft/class_2580;field_31302:I
named
SECONDARY_PROPERTY_INDEX
Lnet/minecraft/block/entity/BeaconBlockEntity;SECONDARY_PROPERTY_INDEX:I
PROPERTY_COUNT
public static final int PROPERTY_COUNT
See Also:
Mappings:
Namespace
Name
Mixin selector
official
e
Lcvh;e:I
intermediary
field_31303
Lnet/minecraft/class_2580;field_31303:I
named
PROPERTY_COUNT
Lnet/minecraft/block/entity/BeaconBlockEntity;PROPERTY_COUNT:I
field_31305
private static final int field_31305
See Also:
Mappings:
Namespace
Name
Mixin selector
official
h
Lcvh;h:I
intermediary
field_31305
Lnet/minecraft/class_2580;field_31305:I
named
field_31305
Lnet/minecraft/block/entity/BeaconBlockEntity;field_31305:I
field_40328
private static final Text field_40328
Mappings:
Namespace
Name
Mixin selector
official
i
Lcvh;i:Lsi;
intermediary
field_40328
Lnet/minecraft/class_2580;field_40328:Lnet/minecraft/class_2561;
named
field_40328
Lnet/minecraft/block/entity/BeaconBlockEntity;field_40328:Lnet/minecraft/text/Text;
beamSegments
Mappings:
Namespace
Name
Mixin selector
official
j
Lcvh;j:Ljava/util/List;
intermediary
field_19177
Lnet/minecraft/class_2580;field_19177:Ljava/util/List;
named
beamSegments
Lnet/minecraft/block/entity/BeaconBlockEntity;beamSegments:Ljava/util/List;
field_19178
Mappings:
Namespace
Name
Mixin selector
official
k
Lcvh;k:Ljava/util/List;
intermediary
field_19178
Lnet/minecraft/class_2580;field_19178:Ljava/util/List;
named
field_19178
Lnet/minecraft/block/entity/BeaconBlockEntity;field_19178:Ljava/util/List;
level
int level
Mappings:
Namespace
Name
Mixin selector
official
l
Lcvh;l:I
intermediary
field_11803
Lnet/minecraft/class_2580;field_11803:I
named
level
Lnet/minecraft/block/entity/BeaconBlockEntity;level:I
minY
private int minY
Mappings:
Namespace
Name
Mixin selector
official
m
Lcvh;m:I
intermediary
field_19179
Lnet/minecraft/class_2580;field_19179:I
named
minY
Lnet/minecraft/block/entity/BeaconBlockEntity;minY:I
primary
Mappings:
Namespace
Name
Mixin selector
official
q
Lcvh;q:Lbcp;
intermediary
field_11795
Lnet/minecraft/class_2580;field_11795:Lnet/minecraft/class_1291;
named
primary
Lnet/minecraft/block/entity/BeaconBlockEntity;primary:Lnet/minecraft/entity/effect/StatusEffect;
secondary
Mappings:
Namespace
Name
Mixin selector
official
r
Lcvh;r:Lbcp;
intermediary
field_11799
Lnet/minecraft/class_2580;field_11799:Lnet/minecraft/class_1291;
named
secondary
Lnet/minecraft/block/entity/BeaconBlockEntity;secondary:Lnet/minecraft/entity/effect/StatusEffect;
customName
Mappings:
Namespace
Name
Mixin selector
official
s
Lcvh;s:Lsi;
intermediary
field_11793
Lnet/minecraft/class_2580;field_11793:Lnet/minecraft/class_2561;
named
customName
Lnet/minecraft/block/entity/BeaconBlockEntity;customName:Lnet/minecraft/text/Text;
lock
Mappings:
Namespace
Name
Mixin selector
official
t
Lcvh;t:Lbbw;
intermediary
field_17377
Lnet/minecraft/class_2580;field_17377:Lnet/minecraft/class_1273;
named
lock
Lnet/minecraft/block/entity/BeaconBlockEntity;lock:Lnet/minecraft/inventory/ContainerLock;
propertyDelegate
Mappings:
Namespace
Name
Mixin selector
official
u
Lcvh;u:Lbyt;
intermediary
field_17378
Lnet/minecraft/class_2580;field_17378:Lnet/minecraft/class_3913;
named
propertyDelegate
Lnet/minecraft/block/entity/BeaconBlockEntity;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;
Constructor Details
BeaconBlockEntity
Mappings:
Namespace
Name
Mixin selector
official
<init>
Lcvh;<init>(Lgr;Lcxu;)V
intermediary
<init>
Lnet/minecraft/class_2580;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named
<init>
Lnet/minecraft/block/entity/BeaconBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
Method Details
tick
Mappings:
Namespace
Name
Mixin selector
official
a
Lcvh;a(Lciz;Lgr;Lcxu;Lcvh;)V
intermediary
method_16896
Lnet/minecraft/class_2580;method_16896(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2580;)V
named
tick
Lnet/minecraft/block/entity/BeaconBlockEntity;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BeaconBlockEntity;)V
updateLevel
private static int updateLevel (World world,
int x,
int y,
int z)
Mappings:
Namespace
Name
Mixin selector
official
a
Lcvh;a(Lciz;III)I
intermediary
method_20293
Lnet/minecraft/class_2580;method_20293(Lnet/minecraft/class_1937;III)I
named
updateLevel
Lnet/minecraft/block/entity/BeaconBlockEntity;updateLevel(Lnet/minecraft/world/World;III)I
markRemoved
public void markRemoved ()
Overrides:
markRemoved in class BlockEntity
Mappings:
Namespace
Name
Mixin selector
official
ad_
Lcvm;ad_()V
intermediary
method_11012
Lnet/minecraft/class_2586;method_11012()V
named
markRemoved
Lnet/minecraft/block/entity/BlockEntity;markRemoved()V
applyPlayerEffects
Mappings:
Namespace
Name
Mixin selector
official
a
Lcvh;a(Lciz;Lgr;ILbcp;Lbcp;)V
intermediary
method_10940
Lnet/minecraft/class_2580;method_10940(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;ILnet/minecraft/class_1291;Lnet/minecraft/class_1291;)V
named
applyPlayerEffects
Lnet/minecraft/block/entity/BeaconBlockEntity;applyPlayerEffects(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/entity/effect/StatusEffect;Lnet/minecraft/entity/effect/StatusEffect;)V
playSound
Mappings:
Namespace
Name
Mixin selector
official
a
Lcvh;a(Lciz;Lgr;Lalc;)V
intermediary
method_10938
Lnet/minecraft/class_2580;method_10938(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;)V
named
playSound
Lnet/minecraft/block/entity/BeaconBlockEntity;playSound(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/sound/SoundEvent;)V
getBeamSegments
Mappings:
Namespace
Name
Mixin selector
official
c
Lcvh;c()Ljava/util/List;
intermediary
method_10937
Lnet/minecraft/class_2580;method_10937()Ljava/util/List;
named
getBeamSegments
Lnet/minecraft/block/entity/BeaconBlockEntity;getBeamSegments()Ljava/util/List;
method_38236
Mappings:
Namespace
Name
Mixin selector
official
f
Lcvh;f()Lui;
intermediary
method_38236
Lnet/minecraft/class_2580;method_38236()Lnet/minecraft/class_2622;
named
method_38236
Lnet/minecraft/block/entity/BeaconBlockEntity;method_38236()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
toInitialChunkDataNbt
Returns the serialized state of this block entity that is observable by clients.
This is sent alongside the initial chunk data, as well as when the block
entity implements BlockEntity.toUpdatePacket() and decides to use the default
BlockEntityUpdateS2CPacket .
"Observable state" is a state that clients can observe without specific interaction.
For example, CampfireBlockEntity 's cooked items are observable states,
but chests' inventories are not observable states, since the player must first open
that chest before they can see the contents.
To send all NBT data of this block entity saved to disk, return BlockEntity.createNbt() .
Overrides:
toInitialChunkDataNbt in class BlockEntity
Returns:
the serialized state of this block entity that is observable by clients
See Also:
Mappings:
Namespace
Name
Mixin selector
official
ac_
Lcvm;ac_()Lqf;
intermediary
method_16887
Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487;
named
toInitialChunkDataNbt
Lnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt()Lnet/minecraft/nbt/NbtCompound;
getPotionEffectById
Mappings:
Namespace
Name
Mixin selector
official
a
Lcvh;a(I)Lbcp;
intermediary
method_10934
Lnet/minecraft/class_2580;method_10934(I)Lnet/minecraft/class_1291;
named
getPotionEffectById
Lnet/minecraft/block/entity/BeaconBlockEntity;getPotionEffectById(I)Lnet/minecraft/entity/effect/StatusEffect;
readNbt
Reads data from
nbt. Subclasses should override this if they
store a persistent data.
NBT is a storage format; therefore, a data from NBT is loaded to a
block entity instance's fields, which are used for other operations instead
of the NBT. The data is written back to NBT when saving the block entity.
nbt might not have all expected keys, or might have a key whose
value does not meet the requirement (such as the type or the range). This
method should fall back to a reasonable default value instead of throwing an
exception.
Overrides:
readNbt in class BlockEntity
See Also:
Mappings:
Namespace
Name
Mixin selector
official
a
Lcvm;a(Lqf;)V
intermediary
method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
named
readNbt
Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
writeNbt
Writes data to
nbt. Subclasses should override this if they
store a persistent data.
NBT is a storage format; therefore, a data from NBT is loaded to a
block entity instance's fields, which are used for other operations instead
of the NBT. The data is written back to NBT when saving the block entity.
Overrides:
writeNbt in class BlockEntity
See Also:
Mappings:
Namespace
Name
Mixin selector
official
b
Lcvm;b(Lqf;)V
intermediary
method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)V
named
writeNbt
Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
setCustomName
Mappings:
Namespace
Name
Mixin selector
official
a
Lcvh;a(Lsi;)V
intermediary
method_10936
Lnet/minecraft/class_2580;method_10936(Lnet/minecraft/class_2561;)V
named
setCustomName
Lnet/minecraft/block/entity/BeaconBlockEntity;setCustomName(Lnet/minecraft/text/Text;)V
getCustomName
Returns the custom name of this object, or null if there is none.
Specified by:
getCustomName in interface Nameable
Returns:
the custom name of this object, or null if there is none
Mappings:
Namespace
Name
Mixin selector
official
ac
Lbby;ac()Lsi;
intermediary
method_5797
Lnet/minecraft/class_1275;method_5797()Lnet/minecraft/class_2561;
named
getCustomName
Lnet/minecraft/util/Nameable;getCustomName()Lnet/minecraft/text/Text;
getDisplayName
public Text getDisplayName ()
Returns the title of this screen handler; will be a part of the open
screen packet sent to the client.
Specified by:
getDisplayName in interface Nameable
Specified by:
getDisplayName in interface NamedScreenHandlerFactory
Returns:
the display name of this object
Mappings:
Namespace
Name
Mixin selector
official
C_
Lbbx;C_()Lsi;
intermediary
method_5476
Lnet/minecraft/class_3908;method_5476()Lnet/minecraft/class_2561;
named
getDisplayName
Lnet/minecraft/screen/NamedScreenHandlerFactory;getDisplayName()Lnet/minecraft/text/Text;
getName
Returns the name of this object.
This should return the custom name if it exists,
otherwise the default name. This should not have styling applied.
Specified by:
getName in interface Nameable
Returns:
the name of this object
Mappings:
Namespace
Name
Mixin selector
official
aa
Lbby;aa()Lsi;
intermediary
method_5477
Lnet/minecraft/class_1275;method_5477()Lnet/minecraft/class_2561;
named
getName
Lnet/minecraft/util/Nameable;getName()Lnet/minecraft/text/Text;
setWorld
public void setWorld (World world)
Sets the world the block entity belongs to.
This should not be called manually; however, this can be overridden
to initialize fields dependent on the world.
Overrides:
setWorld in class BlockEntity
Mappings:
Namespace
Name
Mixin selector
official
a
Lcvm;a(Lciz;)V
intermediary
method_31662
Lnet/minecraft/class_2586;method_31662(Lnet/minecraft/class_1937;)V
named
setWorld
Lnet/minecraft/block/entity/BlockEntity;setWorld(Lnet/minecraft/world/World;)V