Package net.minecraft.block.entity
Class BellBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.BellBlockEntity
- Mappings:
Namespace Name named net/minecraft/block/entity/BellBlockEntityintermediary net/minecraft/class_3721official dqf
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.block.entity.BlockEntity
BlockEntity.ComponentsAccess -
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
addComponents, cancelRemoval, copyItemDataRequiresOperator, createComponentlessNbt, createComponentlessNbtWithIdentifyingData, createComponentMap, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getComponents, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, readComponents, readNbt, removeFromCopiedStackNbt, setCachedState, setComponents, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, tryParseCustomName, writeIdToNbt, writeNbt
-
Field Details
-
MAX_RINGING_TICKS
private static final int MAX_RINGING_TICKS- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_RINGING_TICKSLnet/minecraft/block/entity/BellBlockEntity;MAX_RINGING_TICKS:Iintermediary field_31316Lnet/minecraft/class_3721;field_31316:Iofficial dLdqf;d:I
-
field_31317
private static final int field_31317- See Also:
- Mappings:
Namespace Name Mixin selector named field_31317Lnet/minecraft/block/entity/BellBlockEntity;field_31317:Iintermediary field_31317Lnet/minecraft/class_3721;field_31317:Iofficial eLdqf;e:I
-
field_31318
private static final int field_31318- See Also:
- Mappings:
Namespace Name Mixin selector named field_31318Lnet/minecraft/block/entity/BellBlockEntity;field_31318:Iintermediary field_31318Lnet/minecraft/class_3721;field_31318:Iofficial fLdqf;f:I
-
MAX_RESONATING_TICKS
private static final int MAX_RESONATING_TICKS- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_RESONATING_TICKSLnet/minecraft/block/entity/BellBlockEntity;MAX_RESONATING_TICKS:Iintermediary field_31319Lnet/minecraft/class_3721;field_31319:Iofficial gLdqf;g:I
-
field_31320
private static final int field_31320- See Also:
- Mappings:
Namespace Name Mixin selector named field_31320Lnet/minecraft/block/entity/BellBlockEntity;field_31320:Iintermediary field_31320Lnet/minecraft/class_3721;field_31320:Iofficial hLdqf;h:I
-
field_31321
private static final int field_31321- See Also:
- Mappings:
Namespace Name Mixin selector named field_31321Lnet/minecraft/block/entity/BellBlockEntity;field_31321:Iintermediary field_31321Lnet/minecraft/class_3721;field_31321:Iofficial iLdqf;i:I
-
MAX_BELL_HEARING_DISTANCE
private static final int MAX_BELL_HEARING_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_BELL_HEARING_DISTANCELnet/minecraft/block/entity/BellBlockEntity;MAX_BELL_HEARING_DISTANCE:Iintermediary field_31322Lnet/minecraft/class_3721;field_31322:Iofficial jLdqf;j:I
-
field_31323
private static final int field_31323- See Also:
- Mappings:
Namespace Name Mixin selector named field_31323Lnet/minecraft/block/entity/BellBlockEntity;field_31323:Iintermediary field_31323Lnet/minecraft/class_3721;field_31323:Iofficial kLdqf;k:I
-
lastRingTime
private long lastRingTime- Mappings:
Namespace Name Mixin selector named lastRingTimeLnet/minecraft/block/entity/BellBlockEntity;lastRingTime:Jintermediary field_19155Lnet/minecraft/class_3721;field_19155:Jofficial lLdqf;l:J
-
ringTicks
public int ringTicks- Mappings:
Namespace Name Mixin selector named ringTicksLnet/minecraft/block/entity/BellBlockEntity;ringTicks:Iintermediary field_17095Lnet/minecraft/class_3721;field_17095:Iofficial aLdqf;a:I
-
ringing
public boolean ringing- Mappings:
Namespace Name Mixin selector named ringingLnet/minecraft/block/entity/BellBlockEntity;ringing:Zintermediary field_17096Lnet/minecraft/class_3721;field_17096:Zofficial bLdqf;b:Z
-
lastSideHit
- Mappings:
Namespace Name Mixin selector named lastSideHitLnet/minecraft/block/entity/BellBlockEntity;lastSideHit:Lnet/minecraft/util/math/Direction;intermediary field_17097Lnet/minecraft/class_3721;field_17097:Lnet/minecraft/class_2350;official cLdqf;c:Lji;
-
hearingEntities
- Mappings:
Namespace Name Mixin selector named hearingEntitiesLnet/minecraft/block/entity/BellBlockEntity;hearingEntities:Ljava/util/List;intermediary field_19156Lnet/minecraft/class_3721;field_19156:Ljava/util/List;official mLdqf;m:Ljava/util/List;
-
resonating
private boolean resonating- Mappings:
Namespace Name Mixin selector named resonatingLnet/minecraft/block/entity/BellBlockEntity;resonating:Zintermediary field_19157Lnet/minecraft/class_3721;field_19157:Zofficial qLdqf;q:Z
-
resonateTime
private int resonateTime- Mappings:
Namespace Name Mixin selector named resonateTimeLnet/minecraft/block/entity/BellBlockEntity;resonateTime:Iintermediary field_19158Lnet/minecraft/class_3721;field_19158:Iofficial rLdqf;r:I
-
-
Constructor Details
-
BellBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/entity/BellBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary <init>Lnet/minecraft/class_3721;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Ldqf;<init>(Ljd;Ldtc;)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 named onSyncedBlockEventLnet/minecraft/block/entity/BlockEntity;onSyncedBlockEvent(II)Zintermediary method_11004Lnet/minecraft/class_2586;method_11004(II)Zofficial a_Ldqh;a_(II)Z
-
tick
private static void tick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity, BellBlockEntity.Effect bellEffect) - Mappings:
Namespace Name Mixin selector named 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;)Vintermediary 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 aLdqf;a(Ldcw;Ljd;Ldtc;Ldqf;Ldqf$a;)V
-
clientTick
public static void clientTick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named clientTickLnet/minecraft/block/entity/BellBlockEntity;clientTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BellBlockEntity;)Vintermediary method_31657Lnet/minecraft/class_3721;method_31657(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3721;)Vofficial aLdqf;a(Ldcw;Ljd;Ldtc;Ldqf;)V
-
serverTick
public static void serverTick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named serverTickLnet/minecraft/block/entity/BellBlockEntity;serverTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BellBlockEntity;)Vintermediary method_31659Lnet/minecraft/class_3721;method_31659(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3721;)Vofficial bLdqf;b(Ldcw;Ljd;Ldtc;Ldqf;)V
-
activate
Rings the bell in a given direction.- Mappings:
Namespace Name Mixin selector named activateLnet/minecraft/block/entity/BellBlockEntity;activate(Lnet/minecraft/util/math/Direction;)Vintermediary method_17031Lnet/minecraft/class_3721;method_17031(Lnet/minecraft/class_2350;)Vofficial aLdqf;a(Lji;)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 named notifyMemoriesOfBellLnet/minecraft/block/entity/BellBlockEntity;notifyMemoriesOfBell()Vintermediary method_20219Lnet/minecraft/class_3721;method_20219()Vofficial bLdqf;b()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 named raidersHearBellLnet/minecraft/block/entity/BellBlockEntity;raidersHearBell(Lnet/minecraft/util/math/BlockPos;Ljava/util/List;)Zintermediary method_20523Lnet/minecraft/class_3721;method_20523(Lnet/minecraft/class_2338;Ljava/util/List;)Zofficial aLdqf;a(Ljd;Ljava/util/List;)Z
-
applyGlowToRaiders
private static void applyGlowToRaiders(World world, BlockPos pos, List<LivingEntity> hearingEntities) - Mappings:
Namespace Name Mixin selector named applyGlowToRaidersLnet/minecraft/block/entity/BellBlockEntity;applyGlowToRaiders(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;)Vintermediary method_20521Lnet/minecraft/class_3721;method_20521(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/List;)Vofficial aLdqf;a(Ldcw;Ljd;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 named applyParticlesToRaidersLnet/minecraft/block/entity/BellBlockEntity;applyParticlesToRaiders(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;)Vintermediary method_20218Lnet/minecraft/class_3721;method_20218(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/List;)Vofficial bLdqf;b(Ldcw;Ljd;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 named isRaiderEntityLnet/minecraft/block/entity/BellBlockEntity;isRaiderEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/LivingEntity;)Zintermediary method_20518Lnet/minecraft/class_3721;method_20518(Lnet/minecraft/class_2338;Lnet/minecraft/class_1309;)Zofficial aLdqf;a(Ljd;Lbtn;)Z
-
applyGlowToEntity
Gives theStatusEffects.GLOWINGstatus effect to the given entity for 3 seconds (60 ticks).- Mappings:
Namespace Name Mixin selector named applyGlowToEntityLnet/minecraft/block/entity/BellBlockEntity;applyGlowToEntity(Lnet/minecraft/entity/LivingEntity;)Vintermediary method_20520Lnet/minecraft/class_3721;method_20520(Lnet/minecraft/class_1309;)Vofficial aLdqf;a(Lbtn;)V
-