use of net.minecraft.client.renderer.RenderBlocks in project MineFactoryReloaded by powercrystals.
the class FactoryGlassPaneItemRenderer method renderItem.
@SuppressWarnings("deprecation")
@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
RenderEngine renderEngine = Minecraft.getMinecraft().renderEngine;
RenderBlocks renderer = (RenderBlocks) data[0];
BlockFactoryGlassPane pane = (BlockFactoryGlassPane) Block.blocksList[((ItemBlock) item.getItem()).getBlockID()];
GL11.glPushMatrix();
GL11.glDisable(GL11.GL_CULL_FACE);
Tessellator tessellator = Tessellator.instance;
if (type == ItemRenderType.INVENTORY) {
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glScalef(16f, 16f, 16f);
GL11.glTranslatef(0.5f, 0.5f, 0.5f);
RenderingRegistry.instance().renderInventoryBlock(renderer, pane, item.getItemDamage(), MineFactoryReloadedCore.renderIdFactoryGlassPane);
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
GL11.glScalef(1 / 16f, 1 / 16f, 1 / 16f);
if (item.hasEffect()) {
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glDepthFunc(GL11.GL_GREATER);
GL11.glDepthMask(false);
renderEngine.bindTexture("%blur%/misc/glint.png");
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_DST_COLOR, GL11.GL_DST_COLOR);
GL11.glColor4f(0.5F, 0.25F, 0.8F, 1.0F);
GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE);
float f = 0.00390625F;
float f1 = 0.00390625F;
float f2 = Minecraft.getSystemTime() % (3000 + 0 * 1873) / (3000.0F + 0 * 1873) * 256.0F;
float f3 = 0.0F;
float f4 = 4.0F;
tessellator.startDrawingQuads();
tessellator.addVertexWithUV(0, 16, -50, (f2 + 16 * f4) * f, (f3 + 16) * f1);
tessellator.addVertexWithUV(16, 16, -50, (f2 + 16 + 16 * f4) * f, (f3 + 16) * f1);
tessellator.addVertexWithUV(16, 0, -50, (f2 + 16) * f, (f3 + 0.0F) * f1);
tessellator.addVertexWithUV(0, 0, -50, (f2 + 0.0F) * f, (f3 + 0.0F) * f1);
tessellator.draw();
f2 = Minecraft.getSystemTime() % (3000 + 1 * 1873) / (3000.0F + 1 * 1873) * 256.0F;
f4 = -1.0F;
tessellator.startDrawingQuads();
tessellator.addVertexWithUV(0, 16, -50, (f2 + 16 * f4) * f, (f3 + 16) * f1);
tessellator.addVertexWithUV(16, 16, -50, (f2 + 16 + 16 * f4) * f, (f3 + 16) * f1);
tessellator.addVertexWithUV(16, 0, -50, (f2 + 16) * f, (f3 + 0.0F) * f1);
tessellator.addVertexWithUV(0, 0, -50, (f2 + 0.0F) * f, (f3 + 0.0F) * f1);
tessellator.draw();
GL11.glDisable(GL11.GL_BLEND);
GL11.glDepthMask(true);
GL11.glDepthFunc(GL11.GL_LEQUAL);
}
GL11.glEnable(GL11.GL_LIGHTING);
} else {
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
switch(type) {
case EQUIPPED_FIRST_PERSON:
case EQUIPPED:
GL11.glTranslatef(10 / 16f, 7 / 16f, 0f);
break;
case ENTITY:
GL11.glScalef(0.75f, 0.75f, 0.75f);
GL11.glTranslatef(0f, 4 / 16f, 0f);
break;
default:
}
RenderingRegistry.instance().renderInventoryBlock(renderer, pane, item.getItemDamage(), MineFactoryReloadedCore.renderIdFactoryGlassPane);
GL11.glDisable(GL12.GL_RESCALE_NORMAL);
}
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glPopMatrix();
}
use of net.minecraft.client.renderer.RenderBlocks in project ArsMagica2 by Mithion.
the class SpellScrollRenderer method renderEffect.
public void renderEffect(Affinity affinity, boolean includeArm, Object... data) {
if (!setupIcons) {
setupAffinityIcons();
setupIcons = true;
}
RenderBlocks renderer = (RenderBlocks) data[0];
EntityLivingBase entity = (EntityLivingBase) data[1];
GL11.glPushMatrix();
GL11.glEnable(32826);
GL11.glEnable(3042);
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
float scale = 3f;
if (entity == mc.thePlayer && Minecraft.getMinecraft().gameSettings.thirdPersonView == 0) {
GL11.glPushMatrix();
if (((EntityPlayer) entity).getItemInUseCount() > 0) {
GL11.glRotatef(120, 1, 0, 1);
GL11.glRotatef(-10, 0, 1, 0);
GL11.glTranslatef(2f, 0f, 0.8f);
} else {
GL11.glTranslatef(3f, -1.2f, -2.5f);
GL11.glScalef(scale, scale, scale);
GL11.glRotatef(-45, 0, 1, 0);
}
RenderHelper.disableStandardItemLighting();
GL11.glTranslatef(0.6f, 0.0f, -0.4f);
RenderByAffinity(affinity);
RenderHelper.enableStandardItemLighting();
GL11.glPopMatrix();
if (includeArm) {
if (entity instanceof EntityPlayer && ((EntityPlayer) entity).getItemInUseCount() > 0) {
GL11.glRotatef(-130, 0, 1, 0);
GL11.glTranslatef(-1f, 0.2f, -2.5f);
}
GL11.glScalef(scale, scale, scale);
GL11.glTranslatef(0f, 0.6f, 1.1f);
Minecraft.getMinecraft().renderEngine.bindTexture(mc.thePlayer.getLocationSkin());
renderFirstPersonArm(mc.thePlayer);
}
} else {
if (entity instanceof EntityPlayer && ((EntityPlayer) entity).getItemInUseCount() > 0) {
GL11.glTranslatef(0.0f, 0.0f, 1.0f);
} else {
GL11.glTranslatef(0.0f, 0.0f, 1.6f);
}
scale = 1.5f;
GL11.glScalef(scale, scale, scale);
GL11.glRotatef(45, 0, 1, 0);
RenderByAffinity(affinity);
}
GL11.glDisable(32826);
GL11.glDisable(GL11.GL_BLEND);
GL11.glDisable(3042);
GL11.glPopMatrix();
}
use of net.minecraft.client.renderer.RenderBlocks in project BetterStorage by copygirl.
the class ItemRendererCardboardBox method renderItem.
@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
int color = item.getItem().getColorFromItemStack(item, 0);
RenderUtils.setColorFromInt(color);
RenderBlocks render = RenderBlocks.getInstance();
render.useInventoryTint = false;
if ((type == ItemRenderType.EQUIPPED) || (type == ItemRenderType.EQUIPPED_FIRST_PERSON))
GL11.glTranslatef(0.5F, 0.5F, 0.5F);
render.renderBlockAsItem(block, item.getItemDamage(), 1.0F);
render.useInventoryTint = true;
}
use of net.minecraft.client.renderer.RenderBlocks in project BluePower by Qmunity.
the class PneumaticTube method renderItem.
@Override
@SideOnly(Side.CLIENT)
public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
GL11.glPushMatrix();
GL11.glTranslated(0, -0.125D, 0);
Tessellator t = Tessellator.instance;
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
t.startDrawingQuads();
connections[ForgeDirection.DOWN.ordinal()] = true;
connections[ForgeDirection.UP.ordinal()] = true;
RenderHelper renderer = RenderHelper.instance;
renderer.fullReset();
RenderBlocks rb = new RenderBlocks();
renderStatic(new Vec3i(0, 0, 0), renderer, rb, 0);
renderStatic(new Vec3i(0, 0, 0), renderer, rb, 1);
t.draw();
renderSide();
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationItemsTexture);
GL11.glPopMatrix();
}
use of net.minecraft.client.renderer.RenderBlocks in project LogisticsPipes by RS485.
the class ProxyManager method load.
public static void load() {
SimpleServiceLocator.setBuildCraftProxy(ProxyManager.getWrappedProxy("BuildCraft|Transport+BuildCraft|Silicon+BuildCraft|Robotics", IBCProxy.class, BuildCraftProxy.class, new IBCProxy() {
@Override
public void resetItemRotation() {
}
@Override
public boolean isIPipeTile(TileEntity tile) {
return false;
}
@Override
public void registerPipeInformationProvider() {
}
@Override
public void initProxy() {
}
@Override
public boolean checkForPipeConnection(TileEntity with, ForgeDirection side, LogisticsTileGenericPipe pipe) {
return true;
}
@Override
public IConnectionOverrideResult checkConnectionOverride(TileEntity with, ForgeDirection side, LogisticsTileGenericPipe pipe) {
return new IConnectionOverrideResult() {
@Override
public boolean forceConnect() {
return false;
}
@Override
public boolean forceDisconnect() {
return false;
}
};
}
@Override
public boolean canPipeConnect(TileEntity pipe, TileEntity tile, ForgeDirection direction) {
return false;
}
@Override
public boolean isActive() {
return false;
}
@Override
public boolean isInstalled() {
return false;
}
@Override
public Object getLPPipeType() {
return null;
}
@Override
public void registerTrigger() {
}
@Override
public CraftingParts getRecipeParts() {
return null;
}
@Override
public void addCraftingRecipes(CraftingParts parts) {
}
@Override
public Class<? extends ICraftingRecipeProvider> getAssemblyTableProviderClass() {
return null;
}
@Override
public void notifyOfChange(LogisticsTileGenericPipe logisticsTileGenericPipe, TileEntity tile, ForgeDirection o) {
}
@Override
public IBCTilePart getBCTilePart(LogisticsTileGenericPipe logisticsTileGenericPipe) {
return new IBCTilePart() {
@Override
public boolean hasBlockingPluggable(ForgeDirection side) {
return false;
}
@Override
public void writeToNBT_LP(NBTTagCompound nbt) {
}
@Override
public void readFromNBT_LP(NBTTagCompound nbt) {
}
@Override
public boolean isSolidOnSide(ForgeDirection side) {
return false;
}
@Override
public void invalidate_LP() {
}
@Override
public void validate_LP() {
}
@Override
public void updateEntity_LP() {
}
@Override
public void scheduleNeighborChange() {
}
@Override
public boolean hasGate(ForgeDirection orientation) {
return false;
}
@Override
public IBCRenderState getBCRenderState() {
return new IBCRenderState() {
@Override
public boolean needsRenderUpdate() {
return false;
}
@Override
public boolean isDirty() {
return false;
}
@Override
public void writeData_LP(LPDataOutput output) {
output.writeBoolean(false);
}
@Override
public void readData_LP(LPDataInput input) {
}
@Override
public void clean() {
}
};
}
@Override
public IBCPipePart getBCPipePart() {
return new IBCPipePart() {
@Override
public boolean canConnectRedstone() {
return false;
}
@Override
public int isPoweringTo(int l) {
return 0;
}
@Override
public int isIndirectlyPoweringTo(int l) {
return 0;
}
@Override
public Object getClientGui(InventoryPlayer inventory, int side) {
return null;
}
@Override
public Container getGateContainer(InventoryPlayer inventory, int side) {
return null;
}
@Override
public void addItemDrops(ArrayList<ItemStack> result) {
}
@Override
public Object getOriginal() {
return null;
}
};
}
@Override
public IBCPluggableState getBCPlugableState() {
return new IBCPluggableState() {
@Override
public void writeData(LPDataOutput output) {
}
@Override
public void readData(LPDataInput input) {
}
@Override
public boolean isDirty(boolean clean) {
return false;
}
};
}
@Override
public boolean hasEnabledFacade(ForgeDirection dir) {
return false;
}
@Override
public IBCPipePluggable getBCPipePluggable(ForgeDirection sideHit) {
return new IBCPipePluggable() {
@Override
public ItemStack[] getDropItems(LogisticsTileGenericPipe container) {
return new ItemStack[] {};
}
@Override
public boolean isBlocking() {
return false;
}
@Override
public Object getOriginal() {
return null;
}
@Override
@SideOnly(Side.CLIENT)
public void renderPluggable(RenderBlocks renderblocks, ForgeDirection dir, int renderPass, int x, int y, int z) {
}
@Override
public boolean isAcceptingItems(LPTravelingItemServer arrivingItem) {
return false;
}
@Override
public LPTravelingItemServer handleItem(LPTravelingItemServer arrivingItem) {
return arrivingItem;
}
};
}
@Override
public void readOldRedStone(NBTTagCompound nbt) {
}
@Override
public void afterStateUpdated() {
}
@Override
public Object getOriginal() {
return null;
}
@Override
public boolean hasPipePluggable(ForgeDirection dir) {
return false;
}
@Override
public void setWorldObj_LP(World world) {
}
};
}
@Override
public IBCClickResult handleBCClickOnPipe(World world, int x, int y, int z, EntityPlayer player, int side, float xOffset, float yOffset, float zOffset, CoreUnroutedPipe pipe) {
return new IBCClickResult() {
@Override
public boolean handled() {
return false;
}
@Override
public boolean blocked() {
return false;
}
};
}
@Override
public void callBCNeighborBlockChange(World world, int x, int y, int z, Block block) {
}
@Override
public void callBCRemovePipe(World world, int x, int y, int z) {
}
@Override
public void logWarning(String format) {
}
@Override
public IBCRenderTESR getBCRenderTESR() {
return new IBCRenderTESR() {
@Override
public void renderWires(LogisticsTileGenericPipe pipe, double x, double y, double z) {
}
@Override
public void dynamicRenderPluggables(LogisticsTileGenericPipe pipe, double x, double y, double z) {
}
};
}
@Override
public boolean isTileGenericPipe(TileEntity tile) {
return false;
}
@Override
public void cleanup() {
}
}, IBCTilePart.class, IBCPipePart.class, IBCPipePluggable.class, IBCPluggableState.class, IBCRenderState.class, IBCRenderTESR.class));
SimpleServiceLocator.setForestryProxy(ProxyManager.getWrappedProxy("Forestry", IForestryProxy.class, ForestryProxy.class, new IForestryProxy() {
@Override
public boolean isBee(ItemStack item) {
return false;
}
@Override
public boolean isBee(ItemIdentifier item) {
return false;
}
@Override
public boolean isAnalysedBee(ItemStack item) {
return false;
}
@Override
public boolean isAnalysedBee(ItemIdentifier item) {
return false;
}
@Override
public boolean isTileAnalyser(TileEntity tile) {
return false;
}
@Override
public boolean isKnownAlleleId(String uid, World world) {
return false;
}
@Override
public String getAlleleName(String uid) {
return "";
}
@Override
public String getFirstAlleleId(ItemStack bee) {
return "";
}
@Override
public String getSecondAlleleId(ItemStack bee) {
return "";
}
@Override
public boolean isDrone(ItemStack bee) {
return false;
}
@Override
public boolean isFlyer(ItemStack bee) {
return false;
}
@Override
public boolean isPrincess(ItemStack bee) {
return false;
}
@Override
public boolean isQueen(ItemStack bee) {
return false;
}
@Override
public boolean isPurebred(ItemStack bee) {
return false;
}
@Override
public boolean isNocturnal(ItemStack bee) {
return false;
}
@Override
public boolean isPureNocturnal(ItemStack bee) {
return false;
}
@Override
public boolean isPureFlyer(ItemStack bee) {
return false;
}
@Override
public boolean isCave(ItemStack bee) {
return false;
}
@Override
public boolean isPureCave(ItemStack bee) {
return false;
}
@Override
public String getForestryTranslation(String input) {
return input.substring(input.lastIndexOf(".") + 1).toLowerCase(Locale.US).replace("_", " ");
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getIconIndexForAlleleId(String id, int phase) {
return null;
}
@Override
@SideOnly(Side.CLIENT)
public int getColorForAlleleId(String id, int phase) {
return 16777215;
}
@Override
@SideOnly(Side.CLIENT)
public int getRenderPassesForAlleleId(String id) {
return 0;
}
@Override
public void addCraftingRecipes(CraftingParts parts) {
}
@Override
public String getNextAlleleId(String uid, World world) {
return "";
}
@Override
public String getPrevAlleleId(String uid, World world) {
return "";
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getIconFromTextureManager(String name) {
return null;
}
@Override
public void syncTracker(World world, EntityPlayer player) {
}
}));
SimpleServiceLocator.setElectricItemProxy(ProxyManager.getWrappedProxy("IC2", IIC2Proxy.class, IC2Proxy.class, new IIC2Proxy() {
@Override
public boolean isElectricItem(ItemStack stack) {
return false;
}
@Override
public boolean isSimilarElectricItem(ItemStack stack, ItemStack template) {
return false;
}
@Override
public boolean isFullyCharged(ItemStack stack) {
return false;
}
@Override
public boolean isFullyDischarged(ItemStack stack) {
return false;
}
@Override
public boolean isPartiallyCharged(ItemStack stack) {
return false;
}
@Override
public void addCraftingRecipes(CraftingParts parts) {
}
@Override
public boolean hasIC2() {
return false;
}
@Override
public void registerToEneryNet(TileEntity tile) {
}
@Override
public void unregisterToEneryNet(TileEntity tile) {
}
@Override
public boolean acceptsEnergyFrom(TileEntity tile1, TileEntity tile2, ForgeDirection opposite) {
return false;
}
@Override
public boolean isEnergySink(TileEntity tile) {
return false;
}
@Override
public double demandedEnergyUnits(TileEntity tile) {
return 0;
}
@Override
public double injectEnergyUnits(TileEntity tile, ForgeDirection opposite, double d) {
return d;
}
}));
SimpleServiceLocator.setCCProxy(ProxyManager.getWrappedProxy(LPConstants.computerCraftModID, ICCProxy.class, CCProxy.class, new ICCProxy() {
@Override
public boolean isTurtle(TileEntity tile) {
return false;
}
@Override
public boolean isComputer(TileEntity tile) {
return false;
}
@Override
public boolean isCC() {
return false;
}
@Override
public boolean isLuaThread(Thread thread) {
return false;
}
@Override
public void queueEvent(String event, Object[] arguments, LogisticsTileGenericPipe logisticsTileGenericPipe) {
}
@Override
public void setTurtleConnect(boolean flag, LogisticsTileGenericPipe logisticsTileGenericPipe) {
}
@Override
public boolean getTurtleConnect(LogisticsTileGenericPipe logisticsTileGenericPipe) {
return false;
}
@Override
public int getLastCCID(LogisticsTileGenericPipe logisticsTileGenericPipe) {
return 0;
}
@Override
public void handleMesssage(int computerId, Object message, LogisticsTileGenericPipe tile, int sourceId) {
}
@Override
public void addCraftingRecipes(CraftingParts parts) {
}
@Override
public Object getAnswer(Object object) {
return object;
}
}));
SimpleServiceLocator.setThaumCraftProxy(ProxyManager.getWrappedProxy("Thaumcraft", IThaumCraftProxy.class, ThaumCraftProxy.class, new IThaumCraftProxy() {
@Override
public boolean isScannedObject(ItemStack stack, String playerName) {
return false;
}
@Override
public List<String> getListOfTagsForStack(ItemStack stack) {
return null;
}
@Override
@SideOnly(Side.CLIENT)
public void renderAspectsDown(ItemStack item, int x, int y, GuiScreen gui) {
}
@Override
@SideOnly(Side.CLIENT)
public void renderAspectsInGrid(List<String> eTags, int x, int y, int legnth, int width, GuiScreen gui) {
}
@Override
public void addCraftingRecipes(CraftingParts parts) {
}
}));
SimpleServiceLocator.setThermalExpansionProxy(ProxyManager.getWrappedProxy("ThermalExpansion", IThermalExpansionProxy.class, ThermalExpansionProxy.class, new IThermalExpansionProxy() {
@Override
public boolean isTesseract(TileEntity tile) {
return false;
}
@Override
public boolean isTE() {
return false;
}
@Override
public List<TileEntity> getConnectedTesseracts(TileEntity tile) {
return new ArrayList<>(0);
}
@Override
public CraftingParts getRecipeParts() {
return null;
}
}));
SimpleServiceLocator.setBetterStorageProxy(ProxyManager.getWrappedProxy("betterstorage", IBetterStorageProxy.class, BetterStorageProxy.class, new IBetterStorageProxy() {
@Override
public boolean isBetterStorageCrate(TileEntity tile) {
return false;
}
@Override
public ICrateStorageProxy getCrateStorageProxy(TileEntity tile) {
return new ICrateStorageProxy() {
@Override
public Iterable<ItemStack> getContents() {
return null;
}
@Override
public int getUniqueItems() {
return 0;
}
@Override
public int getItemCount(ItemStack stack) {
return 0;
}
@Override
public ItemStack extractItems(ItemStack stack, int count) {
return null;
}
@Override
public int getSpaceForItem(ItemStack stack) {
return 0;
}
@Override
public ItemStack insertItems(ItemStack stack) {
return stack;
}
};
}
}, ICrateStorageProxy.class));
SimpleServiceLocator.setNEIProxy(ProxyManager.getWrappedProxy("NotEnoughItems", INEIProxy.class, NEIProxy.class, new INEIProxy() {
@Override
public List<String> getInfoForPosition(World world, EntityPlayer player, MovingObjectPosition objectMouseOver) {
return new ArrayList<>(0);
}
@Override
@SideOnly(Side.CLIENT)
public boolean renderItemToolTip(int posX, int posY, List<String> msg, EnumChatFormatting rarityColor, ItemStack stack) {
return false;
}
@Override
@SideOnly(Side.CLIENT)
public List<String> getItemToolTip(ItemStack stack, EntityPlayer thePlayer, boolean advancedItemTooltips, GuiContainer screen) {
return stack.getTooltip(thePlayer, advancedItemTooltips);
}
@Override
public ItemStack getItemForPosition(World world, EntityPlayer player, MovingObjectPosition objectMouseOver) {
return null;
}
}));
SimpleServiceLocator.setFactorizationProxy(ProxyManager.getWrappedProxy("factorization", IFactorizationProxy.class, FactorizationProxy.class, tile -> false));
SimpleServiceLocator.setEnderIOProxy(ProxyManager.getWrappedProxy("EnderIO", IEnderIOProxy.class, EnderIOProxy.class, new IEnderIOProxy() {
@Override
public boolean isSendAndReceive(TileEntity tile) {
return false;
}
@Override
public boolean isHyperCube(TileEntity tile) {
return false;
}
@Override
public boolean isTransceiver(TileEntity tile) {
return false;
}
@Override
public List<TileEntity> getConnectedHyperCubes(TileEntity tile) {
return new ArrayList<>(0);
}
@Override
public List<TileEntity> getConnectedTransceivers(TileEntity tile) {
return null;
}
@Override
public boolean isEnderIO() {
return false;
}
@Override
public boolean isItemConduit(TileEntity tile, ForgeDirection dir) {
return false;
}
@Override
public boolean isFluidConduit(TileEntity tile, ForgeDirection dir) {
return false;
}
@Override
public boolean isBundledPipe(TileEntity tile) {
return false;
}
}));
SimpleServiceLocator.setIronChestProxy(ProxyManager.getWrappedProxy("IronChest", IIronChestProxy.class, IronChestProxy.class, new IIronChestProxy() {
@Override
public boolean isIronChest(TileEntity tile) {
return false;
}
@Override
@SideOnly(Side.CLIENT)
public boolean isChestGui(GuiScreen gui) {
return false;
}
}));
SimpleServiceLocator.setEnderStorageProxy(ProxyManager.getWrappedProxy("EnderStorage", IEnderStorageProxy.class, EnderStorageProxy.class, new IEnderStorageProxy() {
@Override
public boolean isEnderChestBlock(Block block) {
return false;
}
@Override
public void openEnderChest(World world, int x, int y, int z, EntityPlayer player) {
}
}));
SimpleServiceLocator.setOpenComputersProxy(ProxyManager.getWrappedProxy(LPConstants.openComputersModID, IOpenComputersProxy.class, OpenComputersProxy.class, new IOpenComputersProxy() {
@Override
public void initLogisticsTileGenericPipe(LogisticsTileGenericPipe tile) {
}
@Override
public void initLogisticsSolidTileEntity(LogisticsSolidTileEntity tile) {
}
@Override
public void handleWriteToNBT(IOCTile tile, NBTTagCompound nbt) {
}
@Override
public void handleReadFromNBT(IOCTile tile, NBTTagCompound nbt) {
}
@Override
public void handleInvalidate(IOCTile tile) {
}
@Override
public void handleChunkUnload(IOCTile tile) {
}
@Override
public void addToNetwork(TileEntity tile) {
}
}));
SimpleServiceLocator.setToolWrenchProxy(ProxyManager.getWrappedProxy("!IToolWrench", IToolWrenchProxy.class, ToolWrenchProxy.class, new IToolWrenchProxy() {
@Override
public void wrenchUsed(EntityPlayer entityplayer, int x, int y, int z) {
}
@Override
public boolean isWrenchEquipped(EntityPlayer entityplayer) {
return false;
}
@Override
public boolean canWrench(EntityPlayer entityplayer, int x, int y, int z) {
return false;
}
@Override
public boolean isWrench(Item item) {
return false;
}
}));
SimpleServiceLocator.setExtraCellsProxy(ProxyManager.getWrappedProxy("extracells", IExtraCellsProxy.class, ExtraCellsProxy.class, fluid -> true));
SimpleServiceLocator.setCoFHPowerProxy(ProxyManager.getWrappedProxy("CoFHAPI|energy", ICoFHPowerProxy.class, CoFHPowerProxy.class, new ICoFHPowerProxy() {
@Override
public boolean isEnergyReceiver(TileEntity tile) {
return false;
}
@Override
public ICoFHEnergyReceiver getEnergyReceiver(TileEntity tile) {
return new ICoFHEnergyReceiver() {
@Override
public int getMaxEnergyStored(ForgeDirection opposite) {
return 0;
}
@Override
public int getEnergyStored(ForgeDirection opposite) {
return 0;
}
@Override
public boolean canConnectEnergy(ForgeDirection opposite) {
return false;
}
@Override
public int receiveEnergy(ForgeDirection opposite, int i, boolean b) {
return 0;
}
};
}
@Override
public void addCraftingRecipes(CraftingParts parts) {
}
@Override
public ICoFHEnergyStorage getEnergyStorage(int i) {
return new ICoFHEnergyStorage() {
@Override
public int extractEnergy(int space, boolean b) {
return 0;
}
@Override
public int receiveEnergy(int maxReceive, boolean simulate) {
return 0;
}
@Override
public int getEnergyStored() {
return 0;
}
@Override
public int getMaxEnergyStored() {
return 0;
}
@Override
public void readFromNBT(NBTTagCompound nbt) {
}
@Override
public void writeToNBT(NBTTagCompound nbt) {
}
};
}
@Override
public boolean isAvailable() {
return false;
}
}, ICoFHEnergyReceiver.class, ICoFHEnergyStorage.class));
SimpleServiceLocator.setThermalDynamicsProxy(ProxyManager.getWrappedProxy("ThermalDynamics", ITDProxy.class, ThermalDynamicsProxy.class, new ITDProxy() {
@Override
public ITDPart getTDPart(final LogisticsTileGenericPipe pipe) {
return new ITDPart() {
@Override
public TileEntity getInternalDuctForSide(ForgeDirection opposite) {
return pipe;
}
@Override
public void setWorldObj_LP(World world) {
}
@Override
public void invalidate() {
}
@Override
public void onChunkUnload() {
}
@Override
public void scheduleNeighborChange() {
}
@Override
public void connectionsChanged() {
}
};
}
@Override
public boolean isActive() {
return false;
}
@Override
public void registerPipeInformationProvider() {
}
@Override
public boolean isItemDuct(TileEntity tile) {
return false;
}
@Override
@SideOnly(Side.CLIENT)
public void renderPipeConnections(LogisticsTileGenericPipe pipeTile, RenderBlocks renderer) {
}
@Override
public void registerTextures(IIconRegister iconRegister) {
}
@Override
public boolean isBlockedSide(TileEntity with, ForgeDirection opposite) {
return false;
}
}, ITDPart.class));
SimpleServiceLocator.setBinnieProxy(ProxyManager.getWrappedProxy("Genetics", IBinnieProxy.class, BinnieProxy.class, tile -> false));
final IBounds dummyBounds = new IBounds() {
@Override
public IVec3 min() {
return new IVec3() {
@Override
public double x() {
return 0;
}
@Override
public double y() {
return 0;
}
@Override
public double z() {
return 0;
}
@Override
public Object getOriginal() {
return null;
}
};
}
@Override
public IVec3 max() {
return new IVec3() {
@Override
public double x() {
return 0;
}
@Override
public double y() {
return 0;
}
@Override
public double z() {
return 0;
}
@Override
public Object getOriginal() {
return null;
}
};
}
@Override
public AxisAlignedBB toAABB() {
return null;
}
};
final IModel3D dummy3DModel = new IModel3D() {
@Override
public IModel3D backfacedCopy() {
return this;
}
@Override
public void render(I3DOperation... i3dOperations) {
}
@Override
public void computeNormals() {
}
@Override
public void computeStandardLighting() {
}
@Override
public IBounds bounds() {
return dummyBounds;
}
@Override
public IModel3D apply(I3DOperation translation) {
return this;
}
@Override
public IModel3D copy() {
return this;
}
@Override
public IModel3D twoFacedCopy() {
return this;
}
@Override
public Object getOriginal() {
return this;
}
@Override
public IBounds getBoundsInside(AxisAlignedBB boundingBox) {
return dummyBounds;
}
};
ICCLProxy dummyCCLProxy = new ICCLProxy() {
@Override
public IIconTransformation createIconTransformer(IIcon registerIcon) {
return new IIconTransformation() {
@Override
public Object getOriginal() {
return null;
}
@Override
public void update(IIcon registerIcon) {
}
};
}
@Override
public IRenderState getRenderState() {
return new IRenderState() {
@Override
public void reset() {
}
@Override
public void setUseNormals(boolean b) {
}
@Override
public void setAlphaOverride(int i) {
}
@Override
public void draw() {
}
@Override
public void setBrightness(int brightness) {
}
@Override
public void startDrawing() {
}
};
}
@Override
public Map<String, IModel3D> parseObjModels(InputStream resourceAsStream, int i, LPScale scale) {
return new HashMap<>();
}
@Override
public Object getRotation(int i, int j) {
return null;
}
@Override
public Object getScale(double d, double e, double f) {
return null;
}
@Override
public Object getScale(double d) {
return null;
}
@Override
public ITranslation getTranslation(double d, double e, double f) {
return new ITranslation() {
@Override
public ITranslation inverse() {
return this;
}
@Override
public Object getOriginal() {
return null;
}
};
}
@Override
public ITranslation getTranslation(IVec3 min) {
return new ITranslation() {
@Override
public ITranslation inverse() {
return this;
}
@Override
public Object getOriginal() {
return null;
}
};
}
@Override
public Object getUVScale(double i, double d) {
return null;
}
@Override
public Object getUVTranslation(float i, float f) {
return null;
}
@Override
public Object getUVTransformationList(I3DOperation[] uvTranslation) {
return null;
}
@Override
public IModel3D wrapModel(Object model) {
return dummy3DModel;
}
@Override
public boolean isActivated() {
return false;
}
@Override
public Object getRotation(double d, int i, int j, int k) {
return null;
}
@Override
public IModel3D combine(Collection<IModel3D> list) {
return dummy3DModel;
}
@Override
public Object getColourMultiplier(int i) {
return null;
}
};
Class<?>[] cclSubWrapper = new Class<?>[] { IIconTransformation.class, IRenderState.class, IModel3D.class, ITranslation.class, IVec3.class, IBounds.class };
SimpleServiceLocator.setCCLProxy(ProxyManager.getWrappedProxy("!CCLRender", ICCLProxy.class, CCLProxy.class, dummyCCLProxy, cclSubWrapper));
if (!SimpleServiceLocator.cclProxy.isActivated()) {
SimpleServiceLocator.setCCLProxy(ProxyManager.getWrappedProxy("!CoFHCCLRender", ICCLProxy.class, CoFHCCLProxy.class, dummyCCLProxy, cclSubWrapper));
}
}
Aggregations