Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. package fr.dinnerwolph.test.customentities;
  2.  
  3. import net.minecraft.server.v1_8_R3.*;
  4.  
  5. import java.lang.reflect.Field;
  6. import java.util.List;
  7.  
  8. /**
  9. * @author Dinnerwolph
  10. */
  11.  
  12. public class CustomVillager extends EntityVillager {
  13.  
  14.  
  15. public CustomVillager(World world) {
  16. this(world, "");
  17. }
  18.  
  19.  
  20. public CustomVillager(World world, String displayName) {
  21. super(world);
  22. getAttributeInstance(GenericAttributes.MOVEMENT_SPEED).setValue(-3.0D);
  23. setCustomName(displayName);
  24. }
  25.  
  26. @Override
  27. public void g(double d0, double d1, double d2) {
  28. return;
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement