Package net.minecraft.block.entity
Class BellBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.BellBlockEntity
- Mappings:
Namespace Name official ctgintermediary net/minecraft/class_3721named 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 static final intprivate static final intprivate static final intprivate List<LivingEntity>private longprivate 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
-
field_31316
private static final int field_31316- See Also:
- Mappings:
Namespace Name Mixin selector official dLctg;d:Iintermediary field_31316Lnet/minecraft/class_3721;field_31316:Inamed field_31316Lnet/minecraft/block/entity/BellBlockEntity;field_31316:I
-
field_31317
private static final int field_31317- See Also:
- Mappings:
Namespace Name Mixin selector official eLctg;e:Iintermediary field_31317Lnet/minecraft/class_3721;field_31317: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 official fLctg;f:Iintermediary field_31318Lnet/minecraft/class_3721;field_31318:Inamed field_31318Lnet/minecraft/block/entity/BellBlockEntity;field_31318:I
-
field_31319
private static final int field_31319- See Also:
- Mappings:
Namespace Name Mixin selector official gLctg;g:Iintermediary field_31319Lnet/minecraft/class_3721;field_31319:Inamed field_31319Lnet/minecraft/block/entity/BellBlockEntity;field_31319:I
-
field_31320
private static final int field_31320- See Also:
- Mappings:
Namespace Name Mixin selector official hLctg;h:Iintermediary field_31320Lnet/minecraft/class_3721;field_31320: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 official iLctg;i:Iintermediary field_31321Lnet/minecraft/class_3721;field_31321:Inamed field_31321Lnet/minecraft/block/entity/BellBlockEntity;field_31321:I
-
field_31322
private static final int field_31322- See Also:
- Mappings:
Namespace Name Mixin selector official jLctg;j:Iintermediary field_31322Lnet/minecraft/class_3721;field_31322:Inamed field_31322Lnet/minecraft/block/entity/BellBlockEntity;field_31322:I
-
field_31323
private static final int field_31323- See Also:
- Mappings:
Namespace Name Mixin selector official kLctg;k:Iintermediary field_31323Lnet/minecraft/class_3721;field_31323:Inamed field_31323Lnet/minecraft/block/entity/BellBlockEntity;field_31323:I
-
lastRingTime
private long lastRingTime- Mappings:
Namespace Name Mixin selector official lLctg;l:Jintermediary field_19155Lnet/minecraft/class_3721;field_19155:Jnamed lastRingTimeLnet/minecraft/block/entity/BellBlockEntity;lastRingTime:J
-
ringTicks
public int ringTicks- Mappings:
Namespace Name Mixin selector official aLctg;a:Iintermediary field_17095Lnet/minecraft/class_3721;field_17095:Inamed ringTicksLnet/minecraft/block/entity/BellBlockEntity;ringTicks:I
-
ringing
public boolean ringing- Mappings:
Namespace Name Mixin selector official bLctg;b:Zintermediary field_17096Lnet/minecraft/class_3721;field_17096:Znamed ringingLnet/minecraft/block/entity/BellBlockEntity;ringing:Z
-
lastSideHit
- Mappings:
Namespace Name Mixin selector official cLctg;c:Lgy;intermediary field_17097Lnet/minecraft/class_3721;field_17097:Lnet/minecraft/class_2350;named lastSideHitLnet/minecraft/block/entity/BellBlockEntity;lastSideHit:Lnet/minecraft/util/math/Direction;
-
hearingEntities
- Mappings:
Namespace Name Mixin selector official mLctg;m:Ljava/util/List;intermediary field_19156Lnet/minecraft/class_3721;field_19156:Ljava/util/List;named hearingEntitiesLnet/minecraft/block/entity/BellBlockEntity;hearingEntities:Ljava/util/List;
-
resonating
private boolean resonating- Mappings:
Namespace Name Mixin selector official qLctg;q:Zintermediary field_19157Lnet/minecraft/class_3721;field_19157:Znamed resonatingLnet/minecraft/block/entity/BellBlockEntity;resonating:Z
-
resonateTime
private int resonateTime- Mappings:
Namespace Name Mixin selector official rLctg;r:Iintermediary field_19158Lnet/minecraft/class_3721;field_19158:Inamed resonateTimeLnet/minecraft/block/entity/BellBlockEntity;resonateTime:I
-
-
Constructor Details
-
BellBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lctg;<init>(Lgt;Lcvo;)Vintermediary <init>Lnet/minecraft/class_3721;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)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 official a_Lcti;a_(II)Zintermediary method_11004Lnet/minecraft/class_2586;method_11004(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 official aLctg;a(Lcgx;Lgt;Lcvo;Lctg;Lctg$a;)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;)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 official aLctg;a(Lcgx;Lgt;Lcvo;Lctg;)Vintermediary method_31657Lnet/minecraft/class_3721;method_31657(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3721;)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 official bLctg;b(Lcgx;Lgt;Lcvo;Lctg;)Vintermediary method_31659Lnet/minecraft/class_3721;method_31659(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3721;)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 official aLctg;a(Lgy;)Vintermediary method_17031Lnet/minecraft/class_3721;method_17031(Lnet/minecraft/class_2350;)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 official cLctg;c()Vintermediary method_20219Lnet/minecraft/class_3721;method_20219()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 official aLctg;a(Lgt;Ljava/util/List;)Zintermediary method_20523Lnet/minecraft/class_3721;method_20523(Lnet/minecraft/class_2338;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 official aLctg;a(Lcgx;Lgt;Ljava/util/List;)Vintermediary method_20521Lnet/minecraft/class_3721;method_20521(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;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 official bLctg;b(Lcgx;Lgt;Ljava/util/List;)Vintermediary method_20218Lnet/minecraft/class_3721;method_20218(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;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 official aLctg;a(Lgt;Lbcc;)Zintermediary method_20518Lnet/minecraft/class_3721;method_20518(Lnet/minecraft/class_2338;Lnet/minecraft/class_1309;)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 official aLctg;a(Lbcc;)Vintermediary method_20520Lnet/minecraft/class_3721;method_20520(Lnet/minecraft/class_1309;)Vnamed applyGlowToEntityLnet/minecraft/block/entity/BellBlockEntity;applyGlowToEntity(Lnet/minecraft/entity/LivingEntity;)V
-