Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.dinnerwolph.test.customentities;
- import net.minecraft.server.v1_8_R3.*;
- import java.lang.reflect.Field;
- import java.util.List;
- /**
- * @author Dinnerwolph
- */
- public class CustomVillager extends EntityVillager {
- public CustomVillager(World world) {
- this(world, "");
- }
- public CustomVillager(World world, String displayName) {
- super(world);
- getAttributeInstance(GenericAttributes.MOVEMENT_SPEED).setValue(-3.0D);
- setCustomName(displayName);
- }
- @Override
- public void g(double d0, double d1, double d2) {
- return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement