Package net.minecraft.block.entity
Class BellBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.BellBlockEntity
- Mappings:
- Namespace - Name - official - czl- intermediary - net/minecraft/class_3721- named - net/minecraft/block/entity/BellBlockEntity
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier 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.BlockEntitypos, removed, world
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.BlockEntitycancelRemoval, 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_TICKSprivate static final int MAX_RINGING_TICKS- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lczl;d:I- intermediary - field_31316- Lnet/minecraft/class_3721;field_31316:I- named - MAX_RINGING_TICKS- Lnet/minecraft/block/entity/BellBlockEntity;MAX_RINGING_TICKS:I
 
- 
field_31317private static final int field_31317- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lczl;e:I- intermediary - field_31317- Lnet/minecraft/class_3721;field_31317:I- named - field_31317- Lnet/minecraft/block/entity/BellBlockEntity;field_31317:I
 
- 
field_31318private static final int field_31318- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - f- Lczl;f:I- intermediary - field_31318- Lnet/minecraft/class_3721;field_31318:I- named - field_31318- Lnet/minecraft/block/entity/BellBlockEntity;field_31318:I
 
- 
MAX_RESONATING_TICKSprivate static final int MAX_RESONATING_TICKS- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - g- Lczl;g:I- intermediary - field_31319- Lnet/minecraft/class_3721;field_31319:I- named - MAX_RESONATING_TICKS- Lnet/minecraft/block/entity/BellBlockEntity;MAX_RESONATING_TICKS:I
 
- 
field_31320private static final int field_31320- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - h- Lczl;h:I- intermediary - field_31320- Lnet/minecraft/class_3721;field_31320:I- named - field_31320- Lnet/minecraft/block/entity/BellBlockEntity;field_31320:I
 
- 
field_31321private static final int field_31321- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - i- Lczl;i:I- intermediary - field_31321- Lnet/minecraft/class_3721;field_31321:I- named - field_31321- Lnet/minecraft/block/entity/BellBlockEntity;field_31321:I
 
- 
MAX_BELL_HEARING_DISTANCEprivate static final int MAX_BELL_HEARING_DISTANCE- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - j- Lczl;j:I- intermediary - field_31322- Lnet/minecraft/class_3721;field_31322:I- named - MAX_BELL_HEARING_DISTANCE- Lnet/minecraft/block/entity/BellBlockEntity;MAX_BELL_HEARING_DISTANCE:I
 
- 
field_31323private static final int field_31323- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - k- Lczl;k:I- intermediary - field_31323- Lnet/minecraft/class_3721;field_31323:I- named - field_31323- Lnet/minecraft/block/entity/BellBlockEntity;field_31323:I
 
- 
lastRingTimeprivate long lastRingTime- Mappings:
- Namespace - Name - Mixin selector - official - l- Lczl;l:J- intermediary - field_19155- Lnet/minecraft/class_3721;field_19155:J- named - lastRingTime- Lnet/minecraft/block/entity/BellBlockEntity;lastRingTime:J
 
- 
ringTickspublic int ringTicks- Mappings:
- Namespace - Name - Mixin selector - official - a- Lczl;a:I- intermediary - field_17095- Lnet/minecraft/class_3721;field_17095:I- named - ringTicks- Lnet/minecraft/block/entity/BellBlockEntity;ringTicks:I
 
- 
ringingpublic boolean ringing- Mappings:
- Namespace - Name - Mixin selector - official - b- Lczl;b:Z- intermediary - field_17096- Lnet/minecraft/class_3721;field_17096:Z- named - ringing- Lnet/minecraft/block/entity/BellBlockEntity;ringing:Z
 
- 
lastSideHit- Mappings:
- Namespace - Name - Mixin selector - official - c- Lczl;c:Lha;- intermediary - field_17097- Lnet/minecraft/class_3721;field_17097:Lnet/minecraft/class_2350;- named - lastSideHit- Lnet/minecraft/block/entity/BellBlockEntity;lastSideHit:Lnet/minecraft/util/math/Direction;
 
- 
hearingEntities- Mappings:
- Namespace - Name - Mixin selector - official - m- Lczl;m:Ljava/util/List;- intermediary - field_19156- Lnet/minecraft/class_3721;field_19156:Ljava/util/List;- named - hearingEntities- Lnet/minecraft/block/entity/BellBlockEntity;hearingEntities:Ljava/util/List;
 
- 
resonatingprivate boolean resonating- Mappings:
- Namespace - Name - Mixin selector - official - n- Lczl;n:Z- intermediary - field_19157- Lnet/minecraft/class_3721;field_19157:Z- named - resonating- Lnet/minecraft/block/entity/BellBlockEntity;resonating:Z
 
- 
resonateTimeprivate int resonateTime- Mappings:
- Namespace - Name - Mixin selector - official - r- Lczl;r:I- intermediary - field_19158- Lnet/minecraft/class_3721;field_19158:I- named - resonateTime- Lnet/minecraft/block/entity/BellBlockEntity;resonateTime:I
 
 
- 
- 
Constructor Details- 
BellBlockEntity- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lczl;<init>(Lgu;Ldcb;)V- intermediary - <init>- Lnet/minecraft/class_3721;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V- named - <init>- Lnet/minecraft/block/entity/BellBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
 
 
- 
- 
Method Details- 
onSyncedBlockEventpublic 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 class- BlockEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a_- Lczn;a_(II)Z- intermediary - method_11004- Lnet/minecraft/class_2586;method_11004(II)Z- named - onSyncedBlockEvent- Lnet/minecraft/block/entity/BlockEntity;onSyncedBlockEvent(II)Z
 
- 
tickprivate static void tick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity, BellBlockEntity.Effect bellEffect) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lczl;a(Lcmm;Lgu;Ldcb;Lczl;Lczl$a;)V- intermediary - method_31658- Lnet/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;)V- named - tick- Lnet/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
 
- 
clientTickpublic static void clientTick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lczl;a(Lcmm;Lgu;Ldcb;Lczl;)V- intermediary - method_31657- Lnet/minecraft/class_3721;method_31657(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3721;)V- named - clientTick- Lnet/minecraft/block/entity/BellBlockEntity;clientTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BellBlockEntity;)V
 
- 
serverTickpublic static void serverTick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity) - Mappings:
- Namespace - Name - Mixin selector - official - b- Lczl;b(Lcmm;Lgu;Ldcb;Lczl;)V- intermediary - method_31659- Lnet/minecraft/class_3721;method_31659(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3721;)V- named - serverTick- Lnet/minecraft/block/entity/BellBlockEntity;serverTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BellBlockEntity;)V
 
- 
activateRings the bell in a given direction.- Mappings:
- Namespace - Name - Mixin selector - official - a- Lczl;a(Lha;)V- intermediary - method_17031- Lnet/minecraft/class_3721;method_17031(Lnet/minecraft/class_2350;)V- named - activate- Lnet/minecraft/block/entity/BellBlockEntity;activate(Lnet/minecraft/util/math/Direction;)V
 
- 
notifyMemoriesOfBellprivate void notifyMemoriesOfBell()Makes living entities within 48 blocks remember that they heard a bell at the current world time.- Mappings:
- Namespace - Name - Mixin selector - official - c- Lczl;c()V- intermediary - method_20219- Lnet/minecraft/class_3721;method_20219()V- named - notifyMemoriesOfBell- Lnet/minecraft/block/entity/BellBlockEntity;notifyMemoriesOfBell()V
 
- 
raidersHearBellDetermines 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 - official - a- Lczl;a(Lgu;Ljava/util/List;)Z- intermediary - method_20523- Lnet/minecraft/class_3721;method_20523(Lnet/minecraft/class_2338;Ljava/util/List;)Z- named - raidersHearBell- Lnet/minecraft/block/entity/BellBlockEntity;raidersHearBell(Lnet/minecraft/util/math/BlockPos;Ljava/util/List;)Z
 
- 
applyGlowToRaidersprivate static void applyGlowToRaiders(World world, BlockPos pos, List<LivingEntity> hearingEntities) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lczl;a(Lcmm;Lgu;Ljava/util/List;)V- intermediary - method_20521- Lnet/minecraft/class_3721;method_20521(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/List;)V- named - applyGlowToRaiders- Lnet/minecraft/block/entity/BellBlockEntity;applyGlowToRaiders(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;)V
 
- 
applyParticlesToRaidersprivate static void applyParticlesToRaiders(World world, BlockPos pos, List<LivingEntity> hearingEntities) SpawnsParticleTypes.ENTITY_EFFECTparticles around raiders within 48 blocks.- Mappings:
- Namespace - Name - Mixin selector - official - b- Lczl;b(Lcmm;Lgu;Ljava/util/List;)V- intermediary - method_20218- Lnet/minecraft/class_3721;method_20218(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/List;)V- named - applyParticlesToRaiders- Lnet/minecraft/block/entity/BellBlockEntity;applyParticlesToRaiders(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;)V
 
- 
isRaiderEntityDetermines whether the given entity is in theEntityTypeTags.RAIDERSentity type tag and within 48 blocks of the given position.- Mappings:
- Namespace - Name - Mixin selector - official - a- Lczl;a(Lgu;Lbfz;)Z- intermediary - method_20518- Lnet/minecraft/class_3721;method_20518(Lnet/minecraft/class_2338;Lnet/minecraft/class_1309;)Z- named - isRaiderEntity- Lnet/minecraft/block/entity/BellBlockEntity;isRaiderEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/LivingEntity;)Z
 
- 
applyGlowToEntityGives theStatusEffects.GLOWINGstatus effect to the given entity for 3 seconds (60 ticks).- Mappings:
- Namespace - Name - Mixin selector - official - a- Lczl;a(Lbfz;)V- intermediary - method_20520- Lnet/minecraft/class_3721;method_20520(Lnet/minecraft/class_1309;)V- named - applyGlowToEntity- Lnet/minecraft/block/entity/BellBlockEntity;applyGlowToEntity(Lnet/minecraft/entity/LivingEntity;)V
 
 
-