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/BellBlockEntity
intermediary net/minecraft/class_3721
official dqd
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.entity.BlockEntity
BlockEntity.ComponentsAccess
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final int
private static final int
private List
<LivingEntity> private long
private static final int
private static final int
private static final int
private int
private boolean
boolean
int
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Rings the bell in a given direction.private static void
applyGlowToEntity
(LivingEntity entity) Gives theStatusEffects.GLOWING
status effect to the given entity for 3 seconds (60 ticks).private static void
applyGlowToRaiders
(World world, BlockPos pos, List<LivingEntity> hearingEntities) private static void
applyParticlesToRaiders
(World world, BlockPos pos, List<LivingEntity> hearingEntities) SpawnsParticleTypes.ENTITY_EFFECT
particles around raiders within 48 blocks.static void
clientTick
(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity) private static boolean
isRaiderEntity
(BlockPos pos, LivingEntity entity) Determines whether the given entity is in theEntityTypeTags.RAIDERS
entity type tag and within 48 blocks of the given position.private void
Makes living entities within 48 blocks remember that they heard a bell at the current world time.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)
.private static boolean
raidersHearBell
(BlockPos pos, List<LivingEntity> hearingEntities) Determines whether at least one of the given entities would be affected by the bell.static void
serverTick
(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity) private static void
tick
(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_TICKS
Lnet/minecraft/block/entity/BellBlockEntity;MAX_RINGING_TICKS:I
intermediary field_31316
Lnet/minecraft/class_3721;field_31316:I
official d
Ldqd;d:I
-
field_31317
private static final int field_31317- See Also:
- Mappings:
Namespace Name Mixin selector named field_31317
Lnet/minecraft/block/entity/BellBlockEntity;field_31317:I
intermediary field_31317
Lnet/minecraft/class_3721;field_31317:I
official e
Ldqd;e:I
-
field_31318
private static final int field_31318- See Also:
- Mappings:
Namespace Name Mixin selector named field_31318
Lnet/minecraft/block/entity/BellBlockEntity;field_31318:I
intermediary field_31318
Lnet/minecraft/class_3721;field_31318:I
official f
Ldqd;f:I
-
MAX_RESONATING_TICKS
private static final int MAX_RESONATING_TICKS- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_RESONATING_TICKS
Lnet/minecraft/block/entity/BellBlockEntity;MAX_RESONATING_TICKS:I
intermediary field_31319
Lnet/minecraft/class_3721;field_31319:I
official g
Ldqd;g:I
-
field_31320
private static final int field_31320- See Also:
- Mappings:
Namespace Name Mixin selector named field_31320
Lnet/minecraft/block/entity/BellBlockEntity;field_31320:I
intermediary field_31320
Lnet/minecraft/class_3721;field_31320:I
official h
Ldqd;h:I
-
field_31321
private static final int field_31321- See Also:
- Mappings:
Namespace Name Mixin selector named field_31321
Lnet/minecraft/block/entity/BellBlockEntity;field_31321:I
intermediary field_31321
Lnet/minecraft/class_3721;field_31321:I
official i
Ldqd;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_DISTANCE
Lnet/minecraft/block/entity/BellBlockEntity;MAX_BELL_HEARING_DISTANCE:I
intermediary field_31322
Lnet/minecraft/class_3721;field_31322:I
official j
Ldqd;j:I
-
field_31323
private static final int field_31323- See Also:
- Mappings:
Namespace Name Mixin selector named field_31323
Lnet/minecraft/block/entity/BellBlockEntity;field_31323:I
intermediary field_31323
Lnet/minecraft/class_3721;field_31323:I
official k
Ldqd;k:I
-
lastRingTime
private long lastRingTime- Mappings:
Namespace Name Mixin selector named lastRingTime
Lnet/minecraft/block/entity/BellBlockEntity;lastRingTime:J
intermediary field_19155
Lnet/minecraft/class_3721;field_19155:J
official l
Ldqd;l:J
-
ringTicks
public int ringTicks- Mappings:
Namespace Name Mixin selector named ringTicks
Lnet/minecraft/block/entity/BellBlockEntity;ringTicks:I
intermediary field_17095
Lnet/minecraft/class_3721;field_17095:I
official a
Ldqd;a:I
-
ringing
public boolean ringing- Mappings:
Namespace Name Mixin selector named ringing
Lnet/minecraft/block/entity/BellBlockEntity;ringing:Z
intermediary field_17096
Lnet/minecraft/class_3721;field_17096:Z
official b
Ldqd;b:Z
-
lastSideHit
- Mappings:
Namespace Name Mixin selector named lastSideHit
Lnet/minecraft/block/entity/BellBlockEntity;lastSideHit:Lnet/minecraft/util/math/Direction;
intermediary field_17097
Lnet/minecraft/class_3721;field_17097:Lnet/minecraft/class_2350;
official c
Ldqd;c:Lji;
-
hearingEntities
- Mappings:
Namespace Name Mixin selector named hearingEntities
Lnet/minecraft/block/entity/BellBlockEntity;hearingEntities:Ljava/util/List;
intermediary field_19156
Lnet/minecraft/class_3721;field_19156:Ljava/util/List;
official m
Ldqd;m:Ljava/util/List;
-
resonating
private boolean resonating- Mappings:
Namespace Name Mixin selector named resonating
Lnet/minecraft/block/entity/BellBlockEntity;resonating:Z
intermediary field_19157
Lnet/minecraft/class_3721;field_19157:Z
official q
Ldqd;q:Z
-
resonateTime
private int resonateTime- Mappings:
Namespace Name Mixin selector named resonateTime
Lnet/minecraft/block/entity/BellBlockEntity;resonateTime:I
intermediary field_19158
Lnet/minecraft/class_3721;field_19158:I
official r
Ldqd;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;)V
intermediary <init>
Lnet/minecraft/class_3721;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official <init>
Ldqd;<init>(Ljd;Ldta;)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:
onSyncedBlockEvent
in classBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named onSyncedBlockEvent
Lnet/minecraft/block/entity/BlockEntity;onSyncedBlockEvent(II)Z
intermediary method_11004
Lnet/minecraft/class_2586;method_11004(II)Z
official a_
Ldqf;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 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
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
official a
Ldqd;a(Ldcu;Ljd;Ldta;Ldqd;Ldqd$a;)V
-
clientTick
public static void clientTick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector 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
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
official a
Ldqd;a(Ldcu;Ljd;Ldta;Ldqd;)V
-
serverTick
public static void serverTick(World world, BlockPos pos, BlockState state, BellBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector 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
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
official b
Ldqd;b(Ldcu;Ljd;Ldta;Ldqd;)V
-
activate
Rings the bell in a given direction.- Mappings:
Namespace Name Mixin selector named activate
Lnet/minecraft/block/entity/BellBlockEntity;activate(Lnet/minecraft/util/math/Direction;)V
intermediary method_17031
Lnet/minecraft/class_3721;method_17031(Lnet/minecraft/class_2350;)V
official a
Ldqd;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 notifyMemoriesOfBell
Lnet/minecraft/block/entity/BellBlockEntity;notifyMemoriesOfBell()V
intermediary method_20219
Lnet/minecraft/class_3721;method_20219()V
official b
Ldqd;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 raidersHearBell
Lnet/minecraft/block/entity/BellBlockEntity;raidersHearBell(Lnet/minecraft/util/math/BlockPos;Ljava/util/List;)Z
intermediary method_20523
Lnet/minecraft/class_3721;method_20523(Lnet/minecraft/class_2338;Ljava/util/List;)Z
official a
Ldqd;a(Ljd;Ljava/util/List;)Z
-
applyGlowToRaiders
private static void applyGlowToRaiders(World world, BlockPos pos, List<LivingEntity> hearingEntities) - Mappings:
Namespace Name Mixin selector named applyGlowToRaiders
Lnet/minecraft/block/entity/BellBlockEntity;applyGlowToRaiders(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;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
official a
Ldqd;a(Ldcu;Ljd;Ljava/util/List;)V
-
applyParticlesToRaiders
private static void applyParticlesToRaiders(World world, BlockPos pos, List<LivingEntity> hearingEntities) SpawnsParticleTypes.ENTITY_EFFECT
particles around raiders within 48 blocks.- Mappings:
Namespace Name Mixin selector named applyParticlesToRaiders
Lnet/minecraft/block/entity/BellBlockEntity;applyParticlesToRaiders(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;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
official b
Ldqd;b(Ldcu;Ljd;Ljava/util/List;)V
-
isRaiderEntity
Determines whether the given entity is in theEntityTypeTags.RAIDERS
entity type tag and within 48 blocks of the given position.- Mappings:
Namespace Name Mixin selector named isRaiderEntity
Lnet/minecraft/block/entity/BellBlockEntity;isRaiderEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/LivingEntity;)Z
intermediary method_20518
Lnet/minecraft/class_3721;method_20518(Lnet/minecraft/class_2338;Lnet/minecraft/class_1309;)Z
official a
Ldqd;a(Ljd;Lbtl;)Z
-
applyGlowToEntity
Gives theStatusEffects.GLOWING
status effect to the given entity for 3 seconds (60 ticks).- Mappings:
Namespace Name Mixin selector named applyGlowToEntity
Lnet/minecraft/block/entity/BellBlockEntity;applyGlowToEntity(Lnet/minecraft/entity/LivingEntity;)V
intermediary method_20520
Lnet/minecraft/class_3721;method_20520(Lnet/minecraft/class_1309;)V
official a
Ldqd;a(Lbtl;)V
-