Package net.minecraft.block.entity
Class BellBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.BellBlockEntity
- Mappings:
Namespace Name intermediary net/minecraft/class_3721official czinamed net/minecraft/block/entity/BellBlockEntity
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate List<LivingEntity>private longprivate static final intprivate static final intprivate static final intprivate intprivate booleanbooleanintFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRings the bell in a given direction.private static voidapplyGlowToEntity(LivingEntity entity) Gives theStatusEffects.GLOWINGstatus effect to the given entity for 3 seconds (60 ticks).private static voidapplyGlowToRaiders(World world, BlockPos pos, List<LivingEntity> hearingEntities) private static voidapplyParticlesToRaiders(World world, BlockPos pos, List<LivingEntity> hearingEntities) SpawnsParticleTypes.ENTITY_EFFECTparticles around raiders within 48 blocks.static voidclientTick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity) private static booleanisRaiderEntity(BlockPos pos, LivingEntity entity) Determines whether the given entity is in theEntityTypeTags.RAIDERSentity type tag and within 48 blocks of the given position.private voidMakes living entities within 48 blocks remember that they heard a bell at the current world time.booleanonSyncedBlockEvent(int type, int data) If this block entity's block extendsBlockWithEntity, this is called insideAbstractBlock.onSyncedBlockEvent(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, int, int).private static booleanraidersHearBell(BlockPos pos, List<LivingEntity> hearingEntities) Determines whether at least one of the given entities would be affected by the bell.static voidserverTick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity) private static voidtick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity, BellBlockEntity.Effect bellEffect) Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, populateCrashReport, posFromNbt, readNbt, setCachedState, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, writeIdToNbt, writeNbt
-
Field Details
-
MAX_RINGING_TICKS
private static final int MAX_RINGING_TICKS- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_31316Lnet/minecraft/class_3721;field_31316:Iofficial dLczi;d:Inamed MAX_RINGING_TICKSLnet/minecraft/block/entity/BellBlockEntity;MAX_RINGING_TICKS:I
-
field_31317
private static final int field_31317- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_31317Lnet/minecraft/class_3721;field_31317:Iofficial eLczi;e:Inamed field_31317Lnet/minecraft/block/entity/BellBlockEntity;field_31317:I
-
field_31318
private static final int field_31318- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_31318Lnet/minecraft/class_3721;field_31318:Iofficial fLczi;f:Inamed field_31318Lnet/minecraft/block/entity/BellBlockEntity;field_31318:I
-
MAX_RESONATING_TICKS
private static final int MAX_RESONATING_TICKS- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_31319Lnet/minecraft/class_3721;field_31319:Iofficial gLczi;g:Inamed MAX_RESONATING_TICKSLnet/minecraft/block/entity/BellBlockEntity;MAX_RESONATING_TICKS:I
-
field_31320
private static final int field_31320- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_31320Lnet/minecraft/class_3721;field_31320:Iofficial hLczi;h:Inamed field_31320Lnet/minecraft/block/entity/BellBlockEntity;field_31320:I
-
field_31321
private static final int field_31321- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_31321Lnet/minecraft/class_3721;field_31321:Iofficial iLczi;i:Inamed field_31321Lnet/minecraft/block/entity/BellBlockEntity;field_31321:I
-
MAX_BELL_HEARING_DISTANCE
private static final int MAX_BELL_HEARING_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_31322Lnet/minecraft/class_3721;field_31322:Iofficial jLczi;j:Inamed MAX_BELL_HEARING_DISTANCELnet/minecraft/block/entity/BellBlockEntity;MAX_BELL_HEARING_DISTANCE:I
-
field_31323
private static final int field_31323- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_31323Lnet/minecraft/class_3721;field_31323:Iofficial kLczi;k:Inamed field_31323Lnet/minecraft/block/entity/BellBlockEntity;field_31323:I
-
lastRingTime
private long lastRingTime- Mappings:
Namespace Name Mixin selector intermediary field_19155Lnet/minecraft/class_3721;field_19155:Jofficial lLczi;l:Jnamed lastRingTimeLnet/minecraft/block/entity/BellBlockEntity;lastRingTime:J
-
ringTicks
public int ringTicks- Mappings:
Namespace Name Mixin selector intermediary field_17095Lnet/minecraft/class_3721;field_17095:Iofficial aLczi;a:Inamed ringTicksLnet/minecraft/block/entity/BellBlockEntity;ringTicks:I
-
ringing
public boolean ringing- Mappings:
Namespace Name Mixin selector intermediary field_17096Lnet/minecraft/class_3721;field_17096:Zofficial bLczi;b:Znamed ringingLnet/minecraft/block/entity/BellBlockEntity;ringing:Z
-
lastSideHit
- Mappings:
Namespace Name Mixin selector intermediary field_17097Lnet/minecraft/class_3721;field_17097:Lnet/minecraft/class_2350;official cLczi;c:Lha;named lastSideHitLnet/minecraft/block/entity/BellBlockEntity;lastSideHit:Lnet/minecraft/util/math/Direction;
-
hearingEntities
- Mappings:
Namespace Name Mixin selector intermediary field_19156Lnet/minecraft/class_3721;field_19156:Ljava/util/List;official mLczi;m:Ljava/util/List;named hearingEntitiesLnet/minecraft/block/entity/BellBlockEntity;hearingEntities:Ljava/util/List;
-
resonating
private boolean resonating- Mappings:
Namespace Name Mixin selector intermediary field_19157Lnet/minecraft/class_3721;field_19157:Zofficial nLczi;n:Znamed resonatingLnet/minecraft/block/entity/BellBlockEntity;resonating:Z
-
resonateTime
private int resonateTime- Mappings:
Namespace Name Mixin selector intermediary field_19158Lnet/minecraft/class_3721;field_19158:Iofficial rLczi;r:Inamed resonateTimeLnet/minecraft/block/entity/BellBlockEntity;resonateTime:I
-
-
Constructor Details
-
BellBlockEntity
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_3721;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Lczi;<init>(Lgu;Ldby;)Vnamed <init>Lnet/minecraft/block/entity/BellBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
onSyncedBlockEvent
public boolean onSyncedBlockEvent(int type, int data) If this block entity's block extendsBlockWithEntity, this is called insideAbstractBlock.onSyncedBlockEvent(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, int, int).- Overrides:
onSyncedBlockEventin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_11004Lnet/minecraft/class_2586;method_11004(II)Zofficial a_Lczk;a_(II)Znamed onSyncedBlockEventLnet/minecraft/block/entity/BlockEntity;onSyncedBlockEvent(II)Z
-
tick
private static void tick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity, BellBlockEntity.Effect bellEffect) - Mappings:
Namespace Name Mixin selector intermediary method_31658Lnet/minecraft/class_3721;method_31658(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3721;Lnet/minecraft/class_3721$class_5557;)Vofficial aLczi;a(Lcmk;Lgu;Ldby;Lczi;Lczi$a;)Vnamed tickLnet/minecraft/block/entity/BellBlockEntity;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BellBlockEntity;Lnet/minecraft/block/entity/BellBlockEntity$Effect;)V
-
clientTick
public static void clientTick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector intermediary method_31657Lnet/minecraft/class_3721;method_31657(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3721;)Vofficial aLczi;a(Lcmk;Lgu;Ldby;Lczi;)Vnamed clientTickLnet/minecraft/block/entity/BellBlockEntity;clientTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BellBlockEntity;)V
-
serverTick
public static void serverTick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector intermediary method_31659Lnet/minecraft/class_3721;method_31659(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3721;)Vofficial bLczi;b(Lcmk;Lgu;Ldby;Lczi;)Vnamed serverTickLnet/minecraft/block/entity/BellBlockEntity;serverTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BellBlockEntity;)V
-
activate
Rings the bell in a given direction.- Mappings:
Namespace Name Mixin selector intermediary method_17031Lnet/minecraft/class_3721;method_17031(Lnet/minecraft/class_2350;)Vofficial aLczi;a(Lha;)Vnamed activateLnet/minecraft/block/entity/BellBlockEntity;activate(Lnet/minecraft/util/math/Direction;)V
-
notifyMemoriesOfBell
private void notifyMemoriesOfBell()Makes living entities within 48 blocks remember that they heard a bell at the current world time.- Mappings:
Namespace Name Mixin selector intermediary method_20219Lnet/minecraft/class_3721;method_20219()Vofficial cLczi;c()Vnamed notifyMemoriesOfBellLnet/minecraft/block/entity/BellBlockEntity;notifyMemoriesOfBell()V
-
raidersHearBell
Determines whether at least one of the given entities would be affected by the bell.This determines whether the bell resonates. For some reason, despite affected by the bell, entities more than 32 blocks away will not count as hearing the bell.
- Mappings:
Namespace Name Mixin selector intermediary method_20523Lnet/minecraft/class_3721;method_20523(Lnet/minecraft/class_2338;Ljava/util/List;)Zofficial aLczi;a(Lgu;Ljava/util/List;)Znamed raidersHearBellLnet/minecraft/block/entity/BellBlockEntity;raidersHearBell(Lnet/minecraft/util/math/BlockPos;Ljava/util/List;)Z
-
applyGlowToRaiders
private static void applyGlowToRaiders(World world, BlockPos pos, List<LivingEntity> hearingEntities) - Mappings:
Namespace Name Mixin selector intermediary method_20521Lnet/minecraft/class_3721;method_20521(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/List;)Vofficial aLczi;a(Lcmk;Lgu;Ljava/util/List;)Vnamed applyGlowToRaidersLnet/minecraft/block/entity/BellBlockEntity;applyGlowToRaiders(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;)V
-
applyParticlesToRaiders
private static void applyParticlesToRaiders(World world, BlockPos pos, List<LivingEntity> hearingEntities) SpawnsParticleTypes.ENTITY_EFFECTparticles around raiders within 48 blocks.- Mappings:
Namespace Name Mixin selector intermediary method_20218Lnet/minecraft/class_3721;method_20218(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/List;)Vofficial bLczi;b(Lcmk;Lgu;Ljava/util/List;)Vnamed applyParticlesToRaidersLnet/minecraft/block/entity/BellBlockEntity;applyParticlesToRaiders(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;)V
-
isRaiderEntity
Determines whether the given entity is in theEntityTypeTags.RAIDERSentity type tag and within 48 blocks of the given position.- Mappings:
Namespace Name Mixin selector intermediary method_20518Lnet/minecraft/class_3721;method_20518(Lnet/minecraft/class_2338;Lnet/minecraft/class_1309;)Zofficial aLczi;a(Lgu;Lbfx;)Znamed isRaiderEntityLnet/minecraft/block/entity/BellBlockEntity;isRaiderEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/LivingEntity;)Z
-
applyGlowToEntity
Gives theStatusEffects.GLOWINGstatus effect to the given entity for 3 seconds (60 ticks).- Mappings:
Namespace Name Mixin selector intermediary method_20520Lnet/minecraft/class_3721;method_20520(Lnet/minecraft/class_1309;)Vofficial aLczi;a(Lbfx;)Vnamed applyGlowToEntityLnet/minecraft/block/entity/BellBlockEntity;applyGlowToEntity(Lnet/minecraft/entity/LivingEntity;)V
-