2015-08-29 14:33:25 +02:00
|
|
|
|
/*
|
|
|
|
|
* This file ("RenderPlayerEventAA.java") is part of the Actually Additions Mod for Minecraft.
|
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
|
* http://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
|
*
|
|
|
|
|
* <EFBFBD> 2015 Ellpeck
|
|
|
|
|
*/
|
|
|
|
|
|
2015-03-30 18:42:14 +02:00
|
|
|
|
package ellpeck.actuallyadditions.event;
|
|
|
|
|
|
2015-03-31 20:37:55 +02:00
|
|
|
|
import cpw.mods.fml.common.eventhandler.EventPriority;
|
2015-03-30 18:42:14 +02:00
|
|
|
|
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
2015-08-25 18:26:23 +02:00
|
|
|
|
import ellpeck.actuallyadditions.blocks.InitBlocks;
|
2015-09-14 00:15:52 +02:00
|
|
|
|
import ellpeck.actuallyadditions.items.InitItems;
|
2015-10-15 22:36:18 +02:00
|
|
|
|
import ellpeck.actuallyadditions.misc.RenderSpecial;
|
2015-08-25 18:26:23 +02:00
|
|
|
|
import net.minecraft.init.Blocks;
|
2015-09-14 00:15:52 +02:00
|
|
|
|
import net.minecraft.item.ItemStack;
|
2015-03-30 18:42:14 +02:00
|
|
|
|
import net.minecraftforge.client.event.RenderPlayerEvent;
|
|
|
|
|
|
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
|
|
public class RenderPlayerEventAA{
|
|
|
|
|
|
2015-10-03 10:16:18 +02:00
|
|
|
|
public static RenderSpecial lariRender = new RenderSpecial(null);
|
2015-09-14 00:15:52 +02:00
|
|
|
|
private static RenderSpecial ellpeckRender = new RenderSpecial(new ItemStack(InitItems.itemPhantomConnector));
|
|
|
|
|
private static RenderSpecial hoseRender = new RenderSpecial(new ItemStack(Blocks.torch));
|
|
|
|
|
private static RenderSpecial paktoRender = new RenderSpecial(new ItemStack(Blocks.wool, 1, 6));
|
|
|
|
|
private static RenderSpecial glenRender = new RenderSpecial(new ItemStack(InitBlocks.blockHeatCollector));
|
2015-03-30 18:42:14 +02:00
|
|
|
|
|
2015-03-31 20:37:55 +02:00
|
|
|
|
@SubscribeEvent(priority = EventPriority.HIGHEST)
|
2015-08-25 18:26:23 +02:00
|
|
|
|
public void RenderPlayerEvent(RenderPlayerEvent.Specials.Pre event){
|
2015-07-07 12:32:25 +02:00
|
|
|
|
//Ellpeck
|
|
|
|
|
if(event.entityPlayer.getUniqueID().equals(UUID.fromString("3f9f4a94-95e3-40fe-8895-e8e3e84d1468"))){
|
2015-09-14 00:15:52 +02:00
|
|
|
|
ellpeckRender.render(event.entityPlayer, 0.4F, 0.2F);
|
2015-07-07 12:32:25 +02:00
|
|
|
|
}
|
|
|
|
|
//Paktosan
|
2015-08-25 17:59:50 +02:00
|
|
|
|
else if(event.entityPlayer.getUniqueID().equals(UUID.fromString("0bac71ad-9156-487e-9ade-9c5b57274b23"))){
|
2015-08-25 18:26:23 +02:00
|
|
|
|
paktoRender.render(event.entityPlayer, 0.3F, 0);
|
2015-07-07 12:32:25 +02:00
|
|
|
|
}
|
|
|
|
|
//TwoOfEight
|
2015-08-25 17:59:50 +02:00
|
|
|
|
else if(event.entityPlayer.getUniqueID().equals(UUID.fromString("a57d2829-9711-4552-a7de-ee800802f643"))){
|
2015-08-25 18:26:23 +02:00
|
|
|
|
glenRender.render(event.entityPlayer, 0.3F, 0);
|
2015-07-07 12:32:25 +02:00
|
|
|
|
}
|
|
|
|
|
//dqmhose
|
2015-08-25 17:59:50 +02:00
|
|
|
|
else if(event.entityPlayer.getUniqueID().equals(UUID.fromString("cb7b293a-5031-484e-b5be-b4f2f4e92726"))){
|
2015-08-25 18:26:23 +02:00
|
|
|
|
hoseRender.render(event.entityPlayer, 0.5F, -0.075F);
|
2015-07-07 12:32:25 +02:00
|
|
|
|
}
|
2015-08-30 22:41:29 +02:00
|
|
|
|
//Lari
|
|
|
|
|
else if(event.entityPlayer.getUniqueID().equals(UUID.fromString("ac275e30-c468-42af-b5d4-b26c1c705b70"))){
|
|
|
|
|
lariRender.render(event.entityPlayer, 0.15F, -0.125F);
|
|
|
|
|
}
|
2015-03-30 18:42:14 +02:00
|
|
|
|
}
|
|
|
|
|
}
|