Package com.hbm_m.client.handler
Class ClientVanishHandler
java.lang.Object
com.hbm_m.client.handler.ClientVanishHandler
Скрывает рендер «мёртвых» сущностей на клиенте, чтобы эффект скелетонизации
(ParticleSkeletonNT) не дублировался с нормальным рендером трупа.
Порт
ClientProxy.vanish/isVanished из HBM 1.7.10.
Сущность помечается "vanished" на 2 секунды по умолчанию
(этого хватает, пока сервер не удалит мёртвую сущность из списка трекинга).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisVanished(net.minecraft.world.entity.Entity entity) static voidonRenderLivingPre(net.minecraftforge.client.event.RenderLivingEvent.Pre<?, ?> event) static voidvanish(int entityId) static voidvanish(int entityId, int durationMs)
-
Constructor Details
-
ClientVanishHandler
public ClientVanishHandler()
-
-
Method Details
-
vanish
public static void vanish(int entityId) -
vanish
public static void vanish(int entityId, int durationMs) -
isVanished
public static boolean isVanished(net.minecraft.world.entity.Entity entity) -
onRenderLivingPre
public static void onRenderLivingPre(net.minecraftforge.client.event.RenderLivingEvent.Pre<?, ?> event)
-