Guest User

ClientProxy

a guest
Nov 13th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. package com.mojius.mojiusmod.setup;
  2.  
  3.  
  4. import com.mojius.mojiusmod.client.renders.GrassmanRender;
  5. import com.mojius.mojiusmod.entities.GrassmanEntity;
  6.  
  7. import net.minecraft.client.Minecraft;
  8. import net.minecraft.entity.player.PlayerEntity;
  9. import net.minecraft.world.World;
  10. import net.minecraftforge.fml.client.registry.RenderingRegistry;
  11.  
  12. public class ClientProxy implements IProxy {
  13.  
  14. @Override
  15. public void init () {
  16.  
  17. RenderingRegistry.registerEntityRenderingHandler(GrassmanEntity.class, GrassmanRender::new);
  18. }
  19.  
  20. @Override
  21. public World getClientWorld() {
  22. return Minecraft.getInstance().world;
  23. }
  24.  
  25. @Override
  26. public PlayerEntity getClientPlayer() {
  27. return Minecraft.getInstance().player;
  28. }
  29.  
  30. }
Add Comment
Please, Sign In to add comment