Package pneumaticCraft.common.entity

Examples of pneumaticCraft.common.entity.EntityRing


    @Override
    public void doRender(Entity entity, double par2, double par4, double par6, float var8, float par9){
        GL11.glPushMatrix();
        GL11.glTranslatef((float)par2, (float)par4, (float)par6);
        if(entity instanceof EntityRing) {
            EntityRing ring = (EntityRing)entity;
            if(ring.oldRing != null) {
                GL11.glColor4d(1, 1, 1, 1);
                GL11.glDisable(GL11.GL_LIGHTING);
                GL11.glDisable(GL11.GL_TEXTURE_2D);
View Full Code Here


    @Override
    public void handleClientSide(PacketSpawnRing message, EntityPlayer player){
        Entity entity = player.worldObj.getEntityByID(message.targetEntityId);
        if(entity != null) {
            for(int color : message.colors) {
                player.worldObj.spawnEntityInWorld(new EntityRing(player.worldObj, message.x, message.y, message.z, entity, color));
            }
        }
    }
View Full Code Here

TOP

Related Classes of pneumaticCraft.common.entity.EntityRing

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.