-
-
-
-
Method Summary
Modifier and Type |
Method |
Description |
private static void |
applyPlayerEffects(World world,
BlockPos pos,
int beaconLevel,
StatusEffect primaryEffect,
StatusEffect secondaryEffect) |
|
ScreenHandler |
createMenu(int syncId,
PlayerInventory inv,
PlayerEntity player) |
void |
fromTag(CompoundTag tag) |
List<BeaconBlockEntity.BeamSegment> |
getBeamSegments() |
|
Text |
getDisplayName() |
Returns the title of this screen handler; will be a part of the open
screen packet sent to the client.
|
private static StatusEffect |
getPotionEffectById(int id) |
|
double |
getSquaredRenderDistance() |
void |
markRemoved() |
static void |
playSound(World world,
BlockPos pos,
SoundEvent sound) |
|
void |
setCustomName(Text customName) |
|
void |
setWorld(World world) |
static void |
tick(World world,
BlockPos pos,
BlockState state,
BeaconBlockEntity blockEntity) |
|
CompoundTag |
toInitialChunkDataTag() |
CompoundTag |
toTag(CompoundTag tag) |
BlockEntityUpdateS2CPacket |
toUpdatePacket() |
private static int |
updateLevel(World world,
int x,
int y,
int z) |
|
Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, onSyncedBlockEvent, populateCrashReport, setCachedState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
EFFECTS_BY_LEVEL
- Mappings:
Namespace |
Name |
Mixin selector |
official |
a |
Lcfm;a:[[Laqn; |
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 |
b |
Lcfm;b: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; |
-
beamSegments
- Mappings:
Namespace |
Name |
Mixin selector |
official |
c |
Lcfm;c: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 |
g |
Lcfm;g: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
private int level
- Mappings:
Namespace |
Name |
Mixin selector |
official |
h |
Lcfm;h:I |
intermediary |
field_11803 |
Lnet/minecraft/class_2580;field_11803:I |
named |
level |
Lnet/minecraft/block/entity/BeaconBlockEntity;level:I |
-
field_19179
private int field_19179
- Mappings:
Namespace |
Name |
Mixin selector |
official |
i |
Lcfm;i:I |
intermediary |
field_19179 |
Lnet/minecraft/class_2580;field_19179:I |
named |
field_19179 |
Lnet/minecraft/block/entity/BeaconBlockEntity;field_19179:I |
-
primary
- Mappings:
Namespace |
Name |
Mixin selector |
official |
j |
Lcfm;j:Laqn; |
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 |
k |
Lcfm;k:Laqn; |
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 |
l |
Lcfm;l:Loi; |
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 |
m |
Lcfm;m:Laps; |
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 |
n |
Lcfm;n:Lbkb; |
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> |
Lcfm;<init>(Lfx;Lcht;)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 |
Lcfm;a(Lbtv;Lfx;Lcht;Lcfm;)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 |
Lcfm;a(Lbtv;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 |
aq_ |
Lcfr;aq_()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 |
Lcfm;a(Lbtv;Lfx;ILaqn;Laqn;)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 |
Lcfm;a(Lbtv;Lfx;Laef;)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 |
f |
Lcfm;f()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; |
-
toUpdatePacket
- Overrides:
toUpdatePacket
in class BlockEntity
- Mappings:
Namespace |
Name |
Mixin selector |
official |
a |
Lcfr;a()Lpo; |
intermediary |
method_16886 |
Lnet/minecraft/class_2586;method_16886()Lnet/minecraft/class_2622; |
named |
toUpdatePacket |
Lnet/minecraft/block/entity/BlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket; |
-
toInitialChunkDataTag
- Overrides:
toInitialChunkDataTag
in class BlockEntity
- Mappings:
Namespace |
Name |
Mixin selector |
official |
b |
Lcfr;b()Lmq; |
intermediary |
method_16887 |
Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487; |
named |
toInitialChunkDataTag |
Lnet/minecraft/block/entity/BlockEntity;toInitialChunkDataTag()Lnet/minecraft/nbt/CompoundTag; |
-
getSquaredRenderDistance
- Overrides:
getSquaredRenderDistance
in class BlockEntity
- Mappings:
Namespace |
Name |
Mixin selector |
official |
ap_ |
Lcfr;ap_()D |
intermediary |
method_11006 |
Lnet/minecraft/class_2586;method_11006()D |
named |
getSquaredRenderDistance |
Lnet/minecraft/block/entity/BlockEntity;getSquaredRenderDistance()D |
-
getPotionEffectById
- Mappings:
Namespace |
Name |
Mixin selector |
official |
b |
Lcfm;b(I)Laqn; |
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; |
-
fromTag
- Overrides:
fromTag
in class BlockEntity
- Mappings:
Namespace |
Name |
Mixin selector |
official |
a |
Lcfr;a(Lmq;)V |
intermediary |
method_11014 |
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V |
named |
fromTag |
Lnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V |
-
toTag
- Overrides:
toTag
in class BlockEntity
- Mappings:
Namespace |
Name |
Mixin selector |
official |
b |
Lcfr;b(Lmq;)Lmq; |
intermediary |
method_11007 |
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487; |
named |
toTag |
Lnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag; |
-
setCustomName
- Mappings:
Namespace |
Name |
Mixin selector |
official |
a |
Lcfm;a(Loi;)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 |
-
-
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 NamedScreenHandlerFactory
- Mappings:
Namespace |
Name |
Mixin selector |
official |
d |
Lapt;d()Loi; |
intermediary |
method_5476 |
Lnet/minecraft/class_3908;method_5476()Lnet/minecraft/class_2561; |
named |
getDisplayName |
Lnet/minecraft/screen/NamedScreenHandlerFactory;getDisplayName()Lnet/minecraft/text/Text; |
-
setWorld
public void setWorld(
World world)
- Overrides:
setWorld
in class BlockEntity
- Mappings:
Namespace |
Name |
Mixin selector |
official |
a |
Lcfr;a(Lbtv;)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 |