From de4ef5599293e86e01a1b7f879f02231eceb8374 Mon Sep 17 00:00:00 2001 From: haykam821 <24855774+haykam821@users.noreply.github.com> Date: Fri, 5 Feb 2021 03:20:32 -0500 Subject: [PATCH] Document the BellBlockEntity class (#2021) * Document the BellBlockEntity class * Remove unnecessary project files --- .../net/minecraft/block/entity/BellBlockEntity.mapping | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mappings/net/minecraft/block/entity/BellBlockEntity.mapping b/mappings/net/minecraft/block/entity/BellBlockEntity.mapping index 0c0a1c4579..50bdb71303 100644 --- a/mappings/net/minecraft/block/entity/BellBlockEntity.mapping +++ b/mappings/net/minecraft/block/entity/BellBlockEntity.mapping @@ -10,22 +10,31 @@ CLASS net/minecraft/class_3721 net/minecraft/block/entity/BellBlockEntity ARG 1 pos ARG 2 state METHOD method_17031 activate (Lnet/minecraft/class_2350;)V + COMMENT Rings the bell in a given direction. ARG 1 direction METHOD method_20218 applyParticlesToRaiders (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/List;)V + COMMENT Spawns {@link net.minecraft.particle.ParticleTypes#ENTITY_EFFECT} particles around raiders within 48 blocks. ARG 0 world ARG 1 pos ARG 2 hearingEntities METHOD method_20219 notifyMemoriesOfBell ()V + COMMENT Makes living entities within 48 blocks remember that they heard a bell at the current world time. METHOD method_20518 isRaiderEntity (Lnet/minecraft/class_2338;Lnet/minecraft/class_1309;)Z + COMMENT Determines whether the given entity is in the {@link net.minecraft.tag.EntityTypeTags#RAIDERS} entity type tag and within 48 blocks of the given position. ARG 0 pos ARG 1 entity METHOD method_20520 applyGlowToEntity (Lnet/minecraft/class_1309;)V + COMMENT Gives the {@link net.minecraft.entity.effect.StatusEffects#GLOWING} status effect to the given entity for 3 seconds (60 ticks). ARG 0 entity METHOD method_20521 applyGlowToRaiders (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/List;)V ARG 0 world ARG 1 pos ARG 2 hearingEntities METHOD method_20523 raidersHearBell (Lnet/minecraft/class_2338;Ljava/util/List;)Z + COMMENT Determines whether at least one of the given entities would be affected by the bell. + COMMENT + COMMENT

This determines whether the bell resonates. + COMMENT For some reason, despite affected by the bell, entities more than 32 blocks away will not count as hearing the bell. ARG 0 pos ARG 1 hearingEntities METHOD method_31657 clientTick (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3721;)V