Search in sources :

Example 1 with ItemNTP8Bit

use of club.nsdn.nyasamarailway.item.tool.ItemNTP8Bit in project NyaSamaRailway by NSDN.

the class NTPCtrlHandler method tick.

@SubscribeEvent
public void tick(TickEvent.ClientTickEvent event) {
    EntityPlayer player = Minecraft.getMinecraft().thePlayer;
    if (player == null)
        return;
    if (PacketStCHandler.player == null)
        PacketStCHandler.player = player;
    if (Minecraft.getMinecraft().currentScreen instanceof GuiChat)
        return;
    ItemStack stack = player.getCurrentEquippedItem();
    if (stack != null) {
        TrainPacket packet = new TrainPacket();
        if (stack.getItem() instanceof ItemNTP8Bit) {
            ItemNTP8Bit ntp8Bit = (ItemNTP8Bit) stack.getItem();
            packet.fromStack(stack);
            EntityMinecart cart = packet.getCartInClient(ntp8Bit.cart.get(stack));
            if (cart != null) {
                if (cart instanceof LocoBase) {
                    TrainController.doControl(packet, player);
                    NetworkWrapper.instance.sendToServer(packet);
                    packet.toStack(stack);
                    return;
                }
                TrainController.doControl(packet, player);
                NetworkWrapper.instance.sendToServer(packet);
                packet.toStack(stack);
            }
        } else if (stack.getItem() instanceof ItemNTP32Bit) {
            ItemNTP32Bit ntp32Bit = (ItemNTP32Bit) stack.getItem();
            packet.fromStack(stack);
            int[] carts = ntp32Bit.carts.get(stack);
            if (carts.length == 1 && carts[0] == -1)
                return;
            TrainController.doControl(packet, player);
            NetworkWrapper.instance.sendToServer(packet);
            packet.toStack(stack);
        }
    }
}
Also used : ItemNTP32Bit(club.nsdn.nyasamarailway.item.tool.ItemNTP32Bit) ItemNTP8Bit(club.nsdn.nyasamarailway.item.tool.ItemNTP8Bit) LocoBase(club.nsdn.nyasamarailway.entity.LocoBase) EntityPlayer(net.minecraft.entity.player.EntityPlayer) GuiChat(net.minecraft.client.gui.GuiChat) ItemStack(net.minecraft.item.ItemStack) EntityMinecart(net.minecraft.entity.item.EntityMinecart) TrainPacket(club.nsdn.nyasamarailway.network.TrainPacket) SubscribeEvent(cpw.mods.fml.common.eventhandler.SubscribeEvent)

Example 2 with ItemNTP8Bit

use of club.nsdn.nyasamarailway.item.tool.ItemNTP8Bit in project NyaSamaRailway by NSDN.

the class TrainPacket method fromStack.

public void fromStack(ItemStack stack) {
    if (stack == null)
        return;
    if (stack.getItem() instanceof ItemNTP8Bit) {
        ItemNTP8Bit ntp8Bit = (ItemNTP8Bit) stack.getItem();
        this.P = ntp8Bit.power.get(stack);
        this.R = ntp8Bit.brake.get(stack);
        this.Dir = ntp8Bit.dir.get(stack);
    } else if (stack.getItem() instanceof ItemNTP32Bit) {
        ItemNTP32Bit ntp32Bit = (ItemNTP32Bit) stack.getItem();
        this.P = ntp32Bit.power.get(stack);
        this.R = ntp32Bit.brake.get(stack);
        this.Dir = ntp32Bit.dir.get(stack);
    }
}
Also used : ItemNTP32Bit(club.nsdn.nyasamarailway.item.tool.ItemNTP32Bit) ItemNTP8Bit(club.nsdn.nyasamarailway.item.tool.ItemNTP8Bit)

Example 3 with ItemNTP8Bit

use of club.nsdn.nyasamarailway.item.tool.ItemNTP8Bit in project NyaSamaRailway by NSDN.

the class BlockRailReception method onMinecartPass.

@Override
public void onMinecartPass(World world, EntityMinecart cart, int x, int y, int z) {
    boolean playerDetectable = false;
    boolean hasPlayer = false;
    EntityPlayer player = null;
    if (!checkNearbySameRail(world, x, y, z))
        playerDetectable = true;
    if (cart.riddenByEntity instanceof EntityPlayer) {
        player = (EntityPlayer) cart.riddenByEntity;
        ItemStack stack = ((EntityPlayer) cart.riddenByEntity).getCurrentEquippedItem();
        if (stack != null) {
            if (stack.getItem() instanceof ItemNTP8Bit || stack.getItem() instanceof ItemNTP32Bit) {
                return;
            }
        }
        hasPlayer = true;
    } else if (cart.riddenByEntity instanceof EntityMinecart) {
        EntityMinecart ncart = (EntityMinecart) cart.riddenByEntity;
        if (ncart.riddenByEntity instanceof EntityPlayer) {
            player = (EntityPlayer) ncart.riddenByEntity;
            ItemStack stack = ((EntityPlayer) ncart.riddenByEntity).getCurrentEquippedItem();
            if (stack != null) {
                if (stack.getItem() instanceof ItemNTP8Bit || stack.getItem() instanceof ItemNTP32Bit) {
                    return;
                }
            }
            hasPlayer = true;
        }
    }
    double maxV;
    if (!playerDetectable) {
        maxV = 0.1;
        if (isRailPowered(world, x, y, z)) {
            if (getRailDirection(world, x, y, z) == RailDirection.NS) {
                if (cart.motionZ > maxV) {
                    // cart.motionZ > maxV
                    if (cart.motionZ < maxV * 1.5)
                        cart.motionZ = maxV * 1.5;
                } else {
                    if (cart.motionZ >= 0)
                        cart.motionZ = -0.005;
                    if (cart.motionZ > -maxV)
                        cart.motionZ = -Dynamics.LocoMotions.calcVelocityUp(Math.abs(cart.motionZ), 0.1, 1.0, 0.1, 0.02);
                }
            } else {
                if (cart.motionX < -maxV) {
                    // cart.motionX < -maxV
                    if (cart.motionX > -maxV * 1.5)
                        cart.motionX = -maxV * 1.5;
                } else {
                    if (cart.motionX <= 0)
                        cart.motionX = 0.005;
                    if (cart.motionX < maxV)
                        cart.motionX = Dynamics.LocoMotions.calcVelocityUp(Math.abs(cart.motionX), 0.1, 1.0, 0.1, 0.02);
                }
            }
        } else {
            if (Math.abs(cart.motionX) > maxV || Math.abs(cart.motionZ) > maxV) {
                cart.motionX = Math.signum(cart.motionX) * Dynamics.LocoMotions.calcVelocityDown(Math.abs(cart.motionX), 0.1, 1.0, 1.0, 1.0, 0.05, 0.02);
                cart.motionZ = Math.signum(cart.motionZ) * Dynamics.LocoMotions.calcVelocityDown(Math.abs(cart.motionZ), 0.1, 1.0, 1.0, 1.0, 0.05, 0.02);
            } else {
                if (getRailDirection(world, x, y, z) == RailDirection.NS) {
                    cart.motionZ = 0.0D;
                } else {
                    cart.motionX = 0.0D;
                }
            }
        }
    } else {
        maxV = 0.2;
        TileEntityRailReception rail = null;
        if (world.getTileEntity(x, y, z) instanceof TileEntityRailReception) {
            rail = (TileEntityRailReception) world.getTileEntity(x, y, z);
        }
        if (rail != null) {
            if (rail.cartType.equals("loco")) {
                return;
            }
            if (rail.cartType.isEmpty() && (cart.motionX * cart.motionX + cart.motionZ * cart.motionZ == 0))
                registerCart(rail, cart);
            if (!world.isBlockIndirectlyGettingPowered(x, y, z)) {
                if (hasPlayer) {
                    if ((cart.motionX * cart.motionX + cart.motionZ * cart.motionZ > 0) && !rail.enable) {
                        if ((Math.abs(cart.motionX) > maxV / 2) || (Math.abs(cart.motionZ) > maxV / 2)) {
                            cart.motionX = (Math.signum(cart.motionX) * Dynamics.LocoMotions.calcVelocityDown(Math.abs(cart.motionX), 0.1D, 1.0D, 1.0D, 1.0D, 0.05D, 0.02D));
                            cart.motionZ = (Math.signum(cart.motionZ) * Dynamics.LocoMotions.calcVelocityDown(Math.abs(cart.motionZ), 0.1D, 1.0D, 1.0D, 1.0D, 0.05D, 0.02D));
                        } else {
                            rail.enable = true;
                            if (getRailDirection(world, x, y, z) == RailDirection.NS) {
                                cart.motionZ = 0.0D;
                            } else {
                                cart.motionX = 0.0D;
                            }
                            cart.setPosition(x + 0.5, y + 0.5, z + 0.5);
                            if (player instanceof EntityPlayerMP) {
                                player.addChatComponentMessage(new ChatComponentTranslation("info.reception.pause", DELAY_TIME));
                                world.playSoundAtEntity(cart, "nyasamarailway:info.reception.pause", 0.5F, 1.0F);
                            }
                        }
                    } else {
                        if (rail.delay < DELAY_TIME * 20 && rail.enable) {
                            boolean isEnabled = false;
                            if (world.getTileEntity(x, y, z) instanceof TileEntityReceiver) {
                                TileEntityReceiver railReceiver = (TileEntityReceiver) world.getTileEntity(x, y, z);
                                if (railReceiver.senderIsPowered())
                                    isEnabled = true;
                            }
                            if (!isEnabled)
                                rail.delay += 1;
                            else {
                                rail.count += 1;
                                if (rail.delay + rail.count == DELAY_TIME * 15) {
                                    rail.delay = DELAY_TIME * 15 - 1;
                                    rail.count += 1;
                                    if (player instanceof EntityPlayerMP) {
                                        player.addChatComponentMessage(new ChatComponentTranslation("info.reception.delay"));
                                        world.playSoundAtEntity(cart, "nyasamarailway:info.reception.delay", 0.5F, 1.0F);
                                    }
                                }
                            }
                            if (rail.delay == DELAY_TIME * 15) {
                                rail.count = 0;
                                if (player instanceof EntityPlayerMP) {
                                    player.addChatComponentMessage(new ChatComponentTranslation("info.reception.ready"));
                                    world.playSoundAtEntity(cart, "nyasamarailway:info.reception.ready", 0.5F, 1.0F);
                                }
                            }
                            cart.motionX = 0.0D;
                            cart.motionZ = 0.0D;
                            cart.setPosition(x + 0.5, y + 0.5, z + 0.5);
                        } else {
                            if (getRailDirection(world, x, y, z) == RailDirection.NS) {
                                if (cart.motionZ > maxV) {
                                    if (cart.motionZ < maxV * 1.5D)
                                        cart.motionZ = (maxV * 1.5D);
                                } else {
                                    if (cart.motionZ >= 0.0D)
                                        cart.motionZ = -0.005D;
                                    if (cart.motionZ > -maxV) {
                                        cart.motionZ = -Dynamics.LocoMotions.calcVelocityUp(Math.abs(cart.motionZ), 0.1D, 1.0D, 0.1D, 0.02D);
                                    }
                                }
                            } else {
                                if (cart.motionX < -maxV) {
                                    if (cart.motionX > -maxV * 1.5D)
                                        cart.motionX = (-maxV * 1.5D);
                                } else {
                                    if (cart.motionX <= 0.0D)
                                        cart.motionX = 0.005D;
                                    if (cart.motionX < maxV) {
                                        cart.motionX = Dynamics.LocoMotions.calcVelocityUp(Math.abs(cart.motionX), 0.1D, 1.0D, 0.1D, 0.02D);
                                    }
                                }
                            }
                        }
                    }
                } else {
                    cart.motionX = 0.0D;
                    cart.motionZ = 0.0D;
                    cart.setPosition(x + 0.5, y + 0.5, z + 0.5);
                    rail.delay = 0;
                    rail.count = 0;
                    rail.enable = false;
                }
            } else {
                if (cart.motionX * cart.motionX + cart.motionZ * cart.motionZ > 0) {
                    if (getRailDirection(world, x, y, z) == RailDirection.NS) {
                        if (cart.posZ - 0.5 > z) {
                            cart.killMinecart(new DamageSource("nsr"));
                        }
                    } else {
                        if (cart.posX - 0.5 < x) {
                            cart.killMinecart(new DamageSource("nsr"));
                        }
                    }
                }
            }
        }
    }
}
Also used : ItemNTP32Bit(club.nsdn.nyasamarailway.item.tool.ItemNTP32Bit) ItemNTP8Bit(club.nsdn.nyasamarailway.item.tool.ItemNTP8Bit) DamageSource(net.minecraft.util.DamageSource) ChatComponentTranslation(net.minecraft.util.ChatComponentTranslation) EntityPlayer(net.minecraft.entity.player.EntityPlayer) EntityPlayerMP(net.minecraft.entity.player.EntityPlayerMP) TileEntityReceiver(club.nsdn.nyasamatelecom.api.tileentity.TileEntityReceiver) ItemStack(net.minecraft.item.ItemStack) EntityMinecart(net.minecraft.entity.item.EntityMinecart)

Example 4 with ItemNTP8Bit

use of club.nsdn.nyasamarailway.item.tool.ItemNTP8Bit in project NyaSamaRailway by NSDN.

the class BlockRailReceptionAnti method onMinecartPass.

@Override
public void onMinecartPass(World world, EntityMinecart cart, int x, int y, int z) {
    boolean playerDetectable = false;
    boolean hasPlayer = false;
    EntityPlayer player = null;
    if (!checkNearbySameRail(world, x, y, z))
        playerDetectable = true;
    if (cart.riddenByEntity instanceof EntityPlayer) {
        player = (EntityPlayer) cart.riddenByEntity;
        ItemStack stack = ((EntityPlayer) cart.riddenByEntity).getCurrentEquippedItem();
        if (stack != null) {
            if (stack.getItem() instanceof ItemNTP8Bit || stack.getItem() instanceof ItemNTP32Bit) {
                return;
            }
        }
        hasPlayer = true;
    } else if (cart.riddenByEntity instanceof EntityMinecart) {
        EntityMinecart ncart = (EntityMinecart) cart.riddenByEntity;
        if (ncart.riddenByEntity instanceof EntityPlayer) {
            player = (EntityPlayer) ncart.riddenByEntity;
            ItemStack stack = ((EntityPlayer) ncart.riddenByEntity).getCurrentEquippedItem();
            if (stack != null) {
                if (stack.getItem() instanceof ItemNTP8Bit || stack.getItem() instanceof ItemNTP32Bit) {
                    return;
                }
            }
            hasPlayer = true;
        }
    }
    double maxV;
    if (!playerDetectable) {
        maxV = 0.1;
        if (isRailPowered(world, x, y, z)) {
            if (getRailDirection(world, x, y, z) == RailDirection.NS) {
                if (cart.motionZ < -maxV) {
                    // cart.motionZ < -maxV
                    if (cart.motionZ > -maxV * 1.5)
                        cart.motionZ = -maxV * 1.5;
                } else {
                    if (cart.motionZ <= 0)
                        cart.motionZ = 0.005;
                    if (cart.motionZ < maxV)
                        cart.motionZ = Dynamics.LocoMotions.calcVelocityUp(Math.abs(cart.motionZ), 0.1, 1.0, 0.1, 0.02);
                }
            } else {
                if (cart.motionX > maxV) {
                    // cart.motionX > maxV
                    if (cart.motionX < maxV * 1.5)
                        cart.motionX = maxV * 1.5;
                } else {
                    if (cart.motionX >= 0)
                        cart.motionX = -0.005;
                    if (cart.motionX > -maxV)
                        cart.motionX = -Dynamics.LocoMotions.calcVelocityUp(Math.abs(cart.motionX), 0.1, 1.0, 0.1, 0.02);
                }
            }
        } else {
            if (Math.abs(cart.motionX) > maxV || Math.abs(cart.motionZ) > maxV) {
                cart.motionX = Math.signum(cart.motionX) * Dynamics.LocoMotions.calcVelocityDown(Math.abs(cart.motionX), 0.1, 1.0, 1.0, 1.0, 0.05, 0.02);
                cart.motionZ = Math.signum(cart.motionZ) * Dynamics.LocoMotions.calcVelocityDown(Math.abs(cart.motionZ), 0.1, 1.0, 1.0, 1.0, 0.05, 0.02);
            } else {
                if (getRailDirection(world, x, y, z) == RailDirection.NS) {
                    cart.motionZ = 0.0D;
                } else {
                    cart.motionX = 0.0D;
                }
            }
        }
    } else {
        maxV = 0.2;
        TileEntityRailReceptionAnti rail = null;
        if (world.getTileEntity(x, y, z) instanceof TileEntityRailReceptionAnti) {
            rail = (TileEntityRailReceptionAnti) world.getTileEntity(x, y, z);
        }
        if (rail != null) {
            if (rail.cartType.equals("loco")) {
                return;
            }
            if (rail.cartType.isEmpty() && (cart.motionX * cart.motionX + cart.motionZ * cart.motionZ == 0))
                registerCart(rail, cart);
            if (!world.isBlockIndirectlyGettingPowered(x, y, z)) {
                if (hasPlayer) {
                    if ((cart.motionX * cart.motionX + cart.motionZ * cart.motionZ > 0) && !rail.enable) {
                        if ((Math.abs(cart.motionX) > maxV / 2) || (Math.abs(cart.motionZ) > maxV / 2)) {
                            cart.motionX = (Math.signum(cart.motionX) * Dynamics.LocoMotions.calcVelocityDown(Math.abs(cart.motionX), 0.1D, 1.0D, 1.0D, 1.0D, 0.05D, 0.02D));
                            cart.motionZ = (Math.signum(cart.motionZ) * Dynamics.LocoMotions.calcVelocityDown(Math.abs(cart.motionZ), 0.1D, 1.0D, 1.0D, 1.0D, 0.05D, 0.02D));
                        } else {
                            rail.enable = true;
                            if (getRailDirection(world, x, y, z) == RailDirection.NS) {
                                cart.motionZ = 0.0D;
                            } else {
                                cart.motionX = 0.0D;
                            }
                            cart.setPosition(x + 0.5, y + 0.5, z + 0.5);
                            if (player instanceof EntityPlayerMP) {
                                player.addChatComponentMessage(new ChatComponentTranslation("info.reception.pause", DELAY_TIME));
                                world.playSoundAtEntity(cart, "nyasamarailway:info.reception.pause", 0.5F, 1.0F);
                            }
                        }
                    } else {
                        if (rail.delay < DELAY_TIME * 20 && rail.enable) {
                            boolean isEnabled = false;
                            if (world.getTileEntity(x, y, z) instanceof TileEntityReceiver) {
                                TileEntityReceiver railReceiver = (TileEntityReceiver) world.getTileEntity(x, y, z);
                                if (railReceiver.senderIsPowered())
                                    isEnabled = true;
                            }
                            if (!isEnabled)
                                rail.delay += 1;
                            else {
                                rail.count += 1;
                                if (rail.delay + rail.count == DELAY_TIME * 15) {
                                    rail.delay = DELAY_TIME * 15 - 1;
                                    rail.count += 1;
                                    if (player instanceof EntityPlayerMP) {
                                        player.addChatComponentMessage(new ChatComponentTranslation("info.reception.delay"));
                                        world.playSoundAtEntity(cart, "nyasamarailway:info.reception.delay", 0.5F, 1.0F);
                                    }
                                }
                            }
                            if (rail.delay == DELAY_TIME * 15) {
                                rail.count = 0;
                                if (player instanceof EntityPlayerMP) {
                                    player.addChatComponentMessage(new ChatComponentTranslation("info.reception.ready"));
                                    world.playSoundAtEntity(cart, "nyasamarailway:info.reception.ready", 0.5F, 1.0F);
                                }
                            }
                            cart.motionX = 0.0D;
                            cart.motionZ = 0.0D;
                            cart.setPosition(x + 0.5, y + 0.5, z + 0.5);
                        } else {
                            if (getRailDirection(world, x, y, z) == RailDirection.NS) {
                                if (cart.motionZ < -maxV) {
                                    if (cart.motionZ > -maxV * 1.5D)
                                        cart.motionZ = (-maxV * 1.5D);
                                } else {
                                    if (cart.motionZ <= 0.0D)
                                        cart.motionZ = 0.005D;
                                    if (cart.motionZ < maxV) {
                                        cart.motionZ = Dynamics.LocoMotions.calcVelocityUp(Math.abs(cart.motionZ), 0.1D, 1.0D, 0.1D, 0.02D);
                                    }
                                }
                            } else {
                                if (cart.motionX > maxV) {
                                    if (cart.motionX < maxV * 1.5D)
                                        cart.motionX = (maxV * 1.5D);
                                } else {
                                    if (cart.motionX >= 0.0D)
                                        cart.motionX = -0.005D;
                                    if (cart.motionX > -maxV) {
                                        cart.motionX = -Dynamics.LocoMotions.calcVelocityUp(Math.abs(cart.motionX), 0.1D, 1.0D, 0.1D, 0.02D);
                                    }
                                }
                            }
                        }
                    }
                } else {
                    cart.motionX = 0.0D;
                    cart.motionZ = 0.0D;
                    cart.setPosition(x + 0.5, y + 0.5, z + 0.5);
                    rail.delay = 0;
                    rail.count = 0;
                    rail.enable = false;
                }
            } else {
                if (cart.motionX * cart.motionX + cart.motionZ * cart.motionZ > 0) {
                    if (getRailDirection(world, x, y, z) == RailDirection.NS) {
                        if (cart.posZ - 0.5 < z) {
                            cart.killMinecart(new DamageSource("nsr"));
                        }
                    } else {
                        if (cart.posX - 0.5 > x) {
                            cart.killMinecart(new DamageSource("nsr"));
                        }
                    }
                }
            }
        }
    }
}
Also used : ItemNTP32Bit(club.nsdn.nyasamarailway.item.tool.ItemNTP32Bit) ItemNTP8Bit(club.nsdn.nyasamarailway.item.tool.ItemNTP8Bit) DamageSource(net.minecraft.util.DamageSource) ChatComponentTranslation(net.minecraft.util.ChatComponentTranslation) EntityPlayer(net.minecraft.entity.player.EntityPlayer) EntityPlayerMP(net.minecraft.entity.player.EntityPlayerMP) TileEntityReceiver(club.nsdn.nyasamatelecom.api.tileentity.TileEntityReceiver) ItemStack(net.minecraft.item.ItemStack) EntityMinecart(net.minecraft.entity.item.EntityMinecart)

Example 5 with ItemNTP8Bit

use of club.nsdn.nyasamarailway.item.tool.ItemNTP8Bit in project NyaSamaRailway by NSDN.

the class EntityInteractHandler method onEntityInteract.

@SubscribeEvent
public void onEntityInteract(EntityInteractEvent event) {
    if (event.entityLiving instanceof EntityPlayer) {
        EntityPlayer player = (EntityPlayer) event.entityLiving;
        if (player.worldObj.isRemote)
            return;
        Entity entity = event.target;
        ItemStack stack = player.getCurrentEquippedItem();
        if (stack != null) {
            if (stack.getItem() instanceof ItemNTP8Bit) {
                if (player.isSneaking()) {
                    ((ItemNTP8Bit) stack.getItem()).clearCart(stack, player);
                    return;
                }
                if (entity instanceof EntityMinecart) {
                    ((ItemNTP8Bit) stack.getItem()).addCart(stack, player, entity);
                }
            } else if (stack.getItem() instanceof ItemNTP32Bit) {
                if (player.isSneaking()) {
                    ((ItemNTP32Bit) stack.getItem()).clearCart(stack, player);
                    return;
                }
                if (entity instanceof EntityMinecart) {
                    ((ItemNTP32Bit) stack.getItem()).addCart(stack, player, entity);
                } else {
                    if (ExRollerCoaster.getInstance() != null) {
                        if (ExRollerCoaster.getInstance().verifyEntity(entity)) {
                            ((ItemNTP32Bit) stack.getItem()).addCart(stack, player, entity);
                        }
                    }
                    if (RailsOfWar.getInstance() != null) {
                        if (RailsOfWar.getInstance().verifyEntity(entity)) {
                            ((ItemNTP32Bit) stack.getItem()).addCart(stack, player, entity);
                        }
                    }
                }
            } else if (stack.getItem() instanceof Item1N4148) {
                if (entity instanceof NSPCT8J) {
                    NSPCT8J loco = (NSPCT8J) entity;
                    loco.modifyHighSpeedMode(player);
                }
            } else if (stack.getItem() instanceof ItemNSPCT5) {
                if (entity instanceof NSPCT5) {
                    ((NSPCT5) entity).modifyLength();
                }
            } else if (stack.getItem() instanceof ItemNSPCT5L) {
                if (entity instanceof NSPCT5L) {
                    ((NSPCT5L) entity).modifyLength();
                }
            }
        }
    }
}
Also used : ItemNTP32Bit(club.nsdn.nyasamarailway.item.tool.ItemNTP32Bit) Entity(net.minecraft.entity.Entity) ItemNTP8Bit(club.nsdn.nyasamarailway.item.tool.ItemNTP8Bit) NSPCT8J(club.nsdn.nyasamarailway.entity.loco.NSPCT8J) Item1N4148(club.nsdn.nyasamarailway.item.tool.Item1N4148) NSPCT5(club.nsdn.nyasamarailway.entity.cart.NSPCT5) ItemNSPCT5(club.nsdn.nyasamarailway.item.cart.ItemNSPCT5) EntityPlayer(net.minecraft.entity.player.EntityPlayer) ItemStack(net.minecraft.item.ItemStack) NSPCT5L(club.nsdn.nyasamarailway.entity.cart.NSPCT5L) ItemNSPCT5L(club.nsdn.nyasamarailway.item.cart.ItemNSPCT5L) EntityMinecart(net.minecraft.entity.item.EntityMinecart) ItemNSPCT5L(club.nsdn.nyasamarailway.item.cart.ItemNSPCT5L) ItemNSPCT5(club.nsdn.nyasamarailway.item.cart.ItemNSPCT5) SubscribeEvent(cpw.mods.fml.common.eventhandler.SubscribeEvent)

Aggregations

ItemNTP32Bit (club.nsdn.nyasamarailway.item.tool.ItemNTP32Bit)10 ItemNTP8Bit (club.nsdn.nyasamarailway.item.tool.ItemNTP8Bit)10 ItemStack (net.minecraft.item.ItemStack)8 EntityMinecart (net.minecraft.entity.item.EntityMinecart)6 EntityPlayer (net.minecraft.entity.player.EntityPlayer)6 EntityPlayerMP (net.minecraft.entity.player.EntityPlayerMP)5 TileEntityReceiver (club.nsdn.nyasamatelecom.api.tileentity.TileEntityReceiver)4 ChatComponentTranslation (net.minecraft.util.ChatComponentTranslation)4 DamageSource (net.minecraft.util.DamageSource)4 SubscribeEvent (cpw.mods.fml.common.eventhandler.SubscribeEvent)2 LocoBase (club.nsdn.nyasamarailway.entity.LocoBase)1 NSPCT5 (club.nsdn.nyasamarailway.entity.cart.NSPCT5)1 NSPCT5L (club.nsdn.nyasamarailway.entity.cart.NSPCT5L)1 NSPCT8J (club.nsdn.nyasamarailway.entity.loco.NSPCT8J)1 ItemNSPCT5 (club.nsdn.nyasamarailway.item.cart.ItemNSPCT5)1 ItemNSPCT5L (club.nsdn.nyasamarailway.item.cart.ItemNSPCT5L)1 Item1N4148 (club.nsdn.nyasamarailway.item.tool.Item1N4148)1 TrainPacket (club.nsdn.nyasamarailway.network.TrainPacket)1 GuiChat (net.minecraft.client.gui.GuiChat)1 Entity (net.minecraft.entity.Entity)1