MrScautHD

Untitled

Mar 31st, 2021
51
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package net.mrscauthd.boss_tools.procedures;
  2.  
  3. import net.mrscauthd.boss_tools.entity.RocketTier3Entity;
  4. import net.mrscauthd.boss_tools.entity.RocketTier2Entity;
  5. import net.mrscauthd.boss_tools.entity.RocketEntity;
  6. import net.mrscauthd.boss_tools.entity.LandingGearEntity;
  7. import net.mrscauthd.boss_tools.BossToolsModElements;
  8.  
  9. import net.minecraftforge.eventbus.api.SubscribeEvent;
  10. import net.minecraftforge.event.entity.EntityEvent;
  11. import net.minecraftforge.event.TickEvent;
  12. import net.minecraftforge.common.MinecraftForge;
  13. import net.minecraftforge.client.event.RenderPlayerEvent;
  14.  
  15. import net.minecraft.world.World;
  16. import net.minecraft.entity.Entity;
  17.  
  18. import java.util.Map;
  19. import java.util.HashMap;
  20.  
  21. @BossToolsModElements.ModElement.Tag
  22. public class PlayerRendererProcedure extends BossToolsModElements.ModElement {
  23. public PlayerRendererProcedure(BossToolsModElements instance) {
  24. super(instance, 680);
  25. MinecraftForge.EVENT_BUS.register(this);
  26. }
  27.  
  28. @SubscribeEvent
  29. public void renderPlayerPre(EntityEvent.Size size) {
  30. if (((event.getEntity().getRidingEntity()) instanceof RocketEntity.CustomEntity)) {
  31. size.setNewEyeHeight(1f);
  32. }
  33. }
  34. }
RAW Paste Data