public BinnieConfiguration(final String filename, final AbstractMod mod) { super(new File(BinnieCore.getBinnieProxy().getDirectory(), filename)); this.mod = mod; this.filename = filename; } }
public void setTexture(@Nullable final ITexture texture) { if (texture != null) { BinnieCore.getBinnieProxy().bindTexture(texture.getResourceLocation()); } }
@Override public void onRightClick(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) { if (!player.isSneaking()) { BinnieCore.getBinnieProxy().openGui(this.id, player, pos); } } }
public void sendClientAction(final String name, final NBTTagCompound action) { action.setString("type", name); final MessageCraftGUI packet = new MessageCraftGUI(action); BinnieCore.getBinnieProxy().sendToServer(packet); }
@SideOnly(Side.CLIENT) public void registerSprites() { for (BinnieSprite sprite : this.sprites) { sprite.registerSprites(); } BinnieCore.getBinnieProxy().reloadSprites(); } }
@Override public void onMessage(MessageBinnie message, MessageContext context) { if (this != GeneticsPacket.GENE_TRACKER_SYNC || context.side != Side.CLIENT) { return; } MessageNBT packet = new MessageNBT(message); EntityPlayer player = BinnieCore.getBinnieProxy().getPlayer(); GeneTracker tracker = GeneTracker.getTracker(BinnieCore.getBinnieProxy().getWorld(), player.getGameProfile()); tracker.readFromNBT(packet.getTagCompound()); } }
public static void drawGuiSprite(final Point pos, @Nullable final TextureAtlasSprite icon) { if (icon != null) { BinnieCore.getBinnieProxy().bindTexture(ForestryAPI.textureManager.getGuiTextureMap()); drawTexture(pos.xPos(), pos.yPos(), icon, 0, 0, 0); } }
@Override public ActionResult<ItemStack> onItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand handIn) { if (!playerIn.isSneaking() && handIn == EnumHand.MAIN_HAND) { BinnieCore.getBinnieProxy().openGui(BinnieCoreGUI.FIELD_KIT, playerIn, playerIn.getPosition()); } return super.onItemRightClick(worldIn, playerIn, handIn); }
@Override public void preInit() { BinnieCore.setFieldKit(new ItemFieldKit()); BinnieCore.getBinnieProxy().registerItem(BinnieCore.getFieldKit()); BinnieCore.setGenesis(new ItemGenesis()); BinnieCore.getBinnieProxy().registerItem(BinnieCore.getGenesis()); }
@Override public void preInit() { final MachineGroup machineGroup = new MachineGroup(ExtraBees.instance, "alveay", "alveary", ExtraBeeMachines.values()); machineGroup.setCreativeTab(Tabs.tabApiculture); BinnieCore.getBinnieProxy().registerTileEntity(TileExtraBeeAlveary.class, "extrabees.tile.alveary"); ModuleAlveary.blockAlveary = machineGroup.getBlock(); }
@Override public void registerItemsAndBlocks() { final MachineGroup machineGroup = new MachineGroup(ExtraTrees.instance, "machine", "machine", ExtraTreeMachine.values()); machineGroup.setCreativeTab(Tabs.tabArboriculture); blockMachine = machineGroup.getBlock(); // TODO fix rendering Object rendererMachine = null;// BinnieCore.proxy.createObject("binnie.core.machines.RendererMachine"); BinnieCore.getBinnieProxy().registerTileEntity(TileEntityNursery.class, "binnie.tile.nursery"); }
@SideOnly(Side.CLIENT) @Override public void onDisplayTick(World world, BlockPos pos, Random rand) { if (this.getUtil().getProcess().isInProgress()) { final Particle particle = new GenepoolParticle(world, pos, rand); BinnieCore.getBinnieProxy().getMinecraftInstance().effectRenderer.addEffect(particle); } }
@SideOnly(Side.CLIENT) @Override public void onDisplayTick(World world, BlockPos pos, Random rand) { if (this.getUtil().getProcess().isInProgress()) { final ParticleManager effectRenderer = BinnieCore.getBinnieProxy().getMinecraftInstance().effectRenderer; effectRenderer.addEffect(new AnalyserParticle(world, pos, rand)); } }
@SideOnly(Side.CLIENT) @Override public void onRandomDisplayTick(World world, BlockPos pos, Random rand) { if (!this.getUtil().getProcess().isInProgress()) { return; } final Particle particle = new IsolaterParticleRandomTick(world, pos, rand); BinnieCore.getBinnieProxy().getMinecraftInstance().effectRenderer.addEffect(particle); }
@SideOnly(Side.CLIENT) @Override public void onRandomDisplayTick(World world, BlockPos pos, Random rand) { if (!this.getUtil().getProcess().isInProgress()) { return; } Particle particle = new SequencerParticleRandomTick(world, pos, rand); BinnieCore.getBinnieProxy().getMinecraftInstance().effectRenderer.addEffect(particle); }
@SideOnly(Side.CLIENT) @Override public void onDisplayTick(World world, BlockPos pos, Random rand) { if (!this.getUtil().getProcess().isInProgress()) { return; } final int ticks = (int) (world.getTotalWorldTime() % 16L); if (ticks == 0) { final Particle particle = new SequencerParticle(world, pos); BinnieCore.getBinnieProxy().getMinecraftInstance().effectRenderer.addEffect(particle); } }
@SideOnly(Side.CLIENT) @Override public void onDisplayTick(World world, BlockPos pos, Random rand) { if (!this.getUtil().getProcess().isInProgress()) { return; } final int tick = (int) (world.getTotalWorldTime() % 3L); if (tick == 0) { final ParticleManager effectRenderer = BinnieCore.getBinnieProxy().getMinecraftInstance().effectRenderer; effectRenderer.addEffect(new SplicerParticle(world, pos)); } }
@SideOnly(Side.CLIENT) @Override public void onDisplayTick(World world, BlockPos pos, Random rand) { if (!this.getUtil().getProcess().isInProgress()) { return; } final int tick = (int) (world.getTotalWorldTime() % 8L); if (tick == 0 || tick == 3) { final PolymeriserParticle polymeriserParticle = new PolymeriserParticle(world, pos); BinnieCore.getBinnieProxy().getMinecraftInstance().effectRenderer.addEffect(polymeriserParticle); } }
@SideOnly(Side.CLIENT) @Override public void onDisplayTick(World world, BlockPos pos, Random rand) { if (!this.getUtil().getProcess().isInProgress()) { return; } final int tick = (int) (world.getTotalWorldTime() % 3L); if (tick == 0) { final Particle particle = new InoculatorParticle(world, pos); BinnieCore.getBinnieProxy().getMinecraftInstance().effectRenderer.addEffect(particle); } }
@SideOnly(Side.CLIENT) @Override public void onDisplayTick(World world, BlockPos pos, Random rand) { if (!this.getUtil().getProcess().isInProgress()) { return; } final int tick = (int) (world.getTotalWorldTime() % 6L); if (tick == 0 || tick == 5) { final Particle particle = new IsolatorParticle(world, pos); BinnieCore.getBinnieProxy().getMinecraftInstance().effectRenderer.addEffect(particle); } }