Search in sources :

Example 1 with LayerBelt

use of ladysnake.gaspunk.client.render.entity.LayerBelt in project Gaspunk by Ladysnake.

the class ClientProxy method postInit.

@Override
public void postInit() {
    super.postInit();
    Minecraft.getMinecraft().getItemColors().registerItemColorHandler(((stack, tintIndex) -> tintIndex == 0 ? ItemGasTube.getContainedGas(stack).getBottleColor() : Color.WHITE.getRGB()), ModItems.GAS_TUBE, ModItems.GRENADE);
    if (Loader.isModLoaded("baubles"))
        Minecraft.getMinecraft().getRenderManager().getSkinMap().forEach((s, render) -> render.addLayer(new LayerBelt()));
}
Also used : CommonProxy(ladysnake.gaspunk.CommonProxy) Loader(net.minecraftforge.fml.common.Loader) GasPunk(ladysnake.gaspunk.GasPunk) GrenadeSkins(ladysnake.gaspunk.api.customization.GrenadeSkins) World(net.minecraft.world.World) ModItems(ladysnake.gaspunk.init.ModItems) ItemGasTube(ladysnake.gaspunk.item.ItemGasTube) UUID(java.util.UUID) LayerBelt(ladysnake.gaspunk.client.render.entity.LayerBelt) java.awt(java.awt) ParticleGasSmoke(ladysnake.gaspunk.client.particle.ParticleGasSmoke) List(java.util.List) LadyLib(ladylib.LadyLib) Minecraft(net.minecraft.client.Minecraft) Side(net.minecraftforge.fml.relauncher.Side) FMLPreInitializationEvent(net.minecraftforge.fml.common.event.FMLPreInitializationEvent) Optional(java.util.Optional) SpecialRewardChecker(ladysnake.gaspunk.util.SpecialRewardChecker) Property(net.minecraftforge.common.config.Property) SideOnly(net.minecraftforge.fml.relauncher.SideOnly) IGasParticleType(ladysnake.gaspunk.api.IGasParticleType) LayerBelt(ladysnake.gaspunk.client.render.entity.LayerBelt)

Aggregations

java.awt (java.awt)1 List (java.util.List)1 Optional (java.util.Optional)1 UUID (java.util.UUID)1 LadyLib (ladylib.LadyLib)1 CommonProxy (ladysnake.gaspunk.CommonProxy)1 GasPunk (ladysnake.gaspunk.GasPunk)1 IGasParticleType (ladysnake.gaspunk.api.IGasParticleType)1 GrenadeSkins (ladysnake.gaspunk.api.customization.GrenadeSkins)1 ParticleGasSmoke (ladysnake.gaspunk.client.particle.ParticleGasSmoke)1 LayerBelt (ladysnake.gaspunk.client.render.entity.LayerBelt)1 ModItems (ladysnake.gaspunk.init.ModItems)1 ItemGasTube (ladysnake.gaspunk.item.ItemGasTube)1 SpecialRewardChecker (ladysnake.gaspunk.util.SpecialRewardChecker)1 Minecraft (net.minecraft.client.Minecraft)1 World (net.minecraft.world.World)1 Property (net.minecraftforge.common.config.Property)1 Loader (net.minecraftforge.fml.common.Loader)1 FMLPreInitializationEvent (net.minecraftforge.fml.common.event.FMLPreInitializationEvent)1 Side (net.minecraftforge.fml.relauncher.Side)1