mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-23 21:49:58 +00:00
Added EnderCreeper (yes, it will be moved to a sperate mod) and added some enderminie config options.
This commit is contained in:
1 parent
81b3292a63
commit
e03e7fab04
11 files changed
+384
-54
No files matched your search
@@ -9,6 +9,8 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.client.MinecraftForgeClient;
|
||||
@@ -45,7 +47,9 @@ import crazypants.enderio.conduit.render.ItemConduitRenderer;
|
||||
import crazypants.enderio.config.Config;
|
||||
import crazypants.enderio.enderface.EnderIoRenderer;
|
||||
import crazypants.enderio.enderface.TileEnderIO;
|
||||
import crazypants.enderio.entity.EntityEnderCreeper;
|
||||
import crazypants.enderio.entity.EntityEnderminy;
|
||||
import crazypants.enderio.entity.RenderEnderCreeper;
|
||||
import crazypants.enderio.entity.RenderEnderminy;
|
||||
import crazypants.enderio.gui.TooltipAddera;
|
||||
import crazypants.enderio.item.ConduitProbeOverlayRenderer;
|
||||
@@ -396,11 +400,13 @@ public class ClientProxy extends CommonProxy {
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityEnderminy.class, new RenderEnderminy());
|
||||
|
||||
}
|
||||
if(Config.enderminyEnabled) {
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityEnderminy.class, new RenderEnderminy());
|
||||
}
|
||||
if(Config.enderCreeperEnabled) {
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityEnderCreeper.class, new RenderEnderCreeper());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -420,5 +426,10 @@ public class ClientProxy extends CommonProxy {
|
||||
}
|
||||
return super.getReachDistanceForPlayer(entityPlayer);
|
||||
}
|
||||
|
||||
public void setInstantConfusionOnPlayer(EntityPlayer ent, int duration) {
|
||||
ent.addPotionEffect(new PotionEffect(Potion.confusion.getId(), duration, 1, true));
|
||||
Minecraft.getMinecraft().thePlayer.timeInPortal = 1;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user