mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 06:52:58 +00:00
Missed some >.> also a teeny bit of attribution that probably won't even show up because it runs off the screen
This commit is contained in:
1 parent
4dd62fae37
commit
c5a5657810
25 files changed
+52
-282
No files matched your search
@@ -1,51 +0,0 @@
|
||||
/**
|
||||
* This class was created by <Vazkii>. It's distributed as
|
||||
* part of the Botania Mod. Get the Source Code in github:
|
||||
* https://github.com/Vazkii/Botania
|
||||
*
|
||||
* Botania is Open Source and distributed under the
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Jan 21, 2014, 8:02:01 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import vazkii.botania.client.lib.LibRenderIDs;
|
||||
import vazkii.botania.client.render.tile.RenderTileAltar;
|
||||
import vazkii.botania.common.block.tile.TileAltar;
|
||||
import net.minecraftforge.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
|
||||
public class RenderAltar implements ISimpleBlockRenderingHandler {
|
||||
|
||||
@Override
|
||||
public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
|
||||
GlStateManager.pushMatrix();
|
||||
GlStateManager.translate(-0.5F, -0.6F, -0.5F);
|
||||
GlStateManager.scale(0.9F, 0.9F, 0.9F);
|
||||
RenderTileAltar.forceMeta = metadata;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt(new TileAltar(), 0.0D, 0.0D, 0.0D, 0.0F);
|
||||
GlStateManager.popMatrix();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderId() {
|
||||
return LibRenderIDs.idAltar;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldRender3DInInventory(int modelId) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,7 @@
|
||||
*
|
||||
* File Created @ [Oct 24, 2015, 11:06:11 PM (GMT)]
|
||||
*/
|
||||
/*
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -47,3 +48,4 @@ public class RenderAvatar implements ISimpleBlockRenderingHandler {
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -8,6 +8,7 @@
|
||||
*
|
||||
* File Created @ [Aug 28, 2015, 7:13:45 PM (GMT)]
|
||||
*/
|
||||
/*
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -48,3 +49,4 @@ public class RenderBellows implements ISimpleBlockRenderingHandler {
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -8,6 +8,7 @@
|
||||
*
|
||||
* File Created @ [Oct 31, 2014, 5:00:12 PM (GMT)]
|
||||
*/
|
||||
/*
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -51,3 +52,4 @@ public class RenderBrewery implements ISimpleBlockRenderingHandler {
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -8,6 +8,7 @@
|
||||
*
|
||||
* File Created @ [Jul 8, 2015, 5:57:29 PM (GMT)]
|
||||
*/
|
||||
/*
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -47,3 +48,4 @@ public class RenderCocoon implements ISimpleBlockRenderingHandler {
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -8,6 +8,7 @@
|
||||
*
|
||||
* File Created @ [Apr 30, 2015, 6:22:32 PM (GMT)]
|
||||
*/
|
||||
/*
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -49,3 +50,4 @@ public class RenderCorporeaCrystalCube implements ISimpleBlockRenderingHandler {
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -8,6 +8,7 @@
|
||||
*
|
||||
* File Created @ [Feb 15, 2015, 1:57:50 AM (GMT)]
|
||||
*/
|
||||
/*
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -51,3 +52,4 @@ public class RenderCorporeaIndex implements ISimpleBlockRenderingHandler {
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -1,69 +0,0 @@
|
||||
/**
|
||||
* This class was created by <Vazkii>. It's distributed as
|
||||
* part of the Botania Mod. Get the Source Code in github:
|
||||
* https://github.com/Vazkii/Botania
|
||||
*
|
||||
* Botania is Open Source and distributed under the
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Mar 22, 2015, 9:00:06 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockDoublePlant;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import vazkii.botania.client.lib.LibRenderIDs;
|
||||
import net.minecraftforge.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
|
||||
public class RenderDoubleFlower implements ISimpleBlockRenderingHandler {
|
||||
|
||||
@Override
|
||||
public void renderInventoryBlock(Block block, int metadata, int modelId, RenderBlocks renderer) {
|
||||
// NO-OP
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderWorldBlock(IBlockAccess world, int p_147774_2_, int p_147774_3_, int p_147774_4_, Block block, int modelId, RenderBlocks renderer) {
|
||||
BlockDoublePlant p_147774_1_ = (BlockDoublePlant) block;
|
||||
Tessellator tessellator = Tessellator.getInstance();
|
||||
tessellator.setBrightness(p_147774_1_.getMixedBrightnessForBlock(world, p_147774_2_, p_147774_3_, p_147774_4_));
|
||||
tessellator.setColorOpaque_F(1F, 1F, 1F);
|
||||
long j1 = p_147774_2_ * 3129871 ^ p_147774_4_ * 116129781L;
|
||||
j1 = j1 * j1 * 42317861L + j1 * 11L;
|
||||
int i1 = world.getBlockMetadata(p_147774_2_, p_147774_3_, p_147774_4_);
|
||||
boolean flag1 = BlockDoublePlant.func_149887_c(i1);
|
||||
if (flag1)
|
||||
{
|
||||
if (world.getBlock(p_147774_2_, p_147774_3_ - 1, p_147774_4_) != p_147774_1_)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
BlockDoublePlant.func_149890_d(world.getBlockMetadata(p_147774_2_, p_147774_3_ - 1, p_147774_4_));
|
||||
}
|
||||
else
|
||||
{
|
||||
BlockDoublePlant.func_149890_d(i1);
|
||||
}
|
||||
|
||||
// Only change here, to use xyz rather than side/meta
|
||||
IIcon icon = renderer.getBlockIcon(block, world, p_147774_2_, p_147774_3_, p_147774_4_, 0);
|
||||
RenderSpecialFlower.drawCrossedSquares(world, block, icon, p_147774_2_, p_147774_3_, p_147774_4_, p_147774_2_, p_147774_3_, p_147774_4_, 1F, renderer);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldRender3DInInventory(int modelId) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderId() {
|
||||
return LibRenderIDs.idDoubleFlower;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
/**
|
||||
* This class was created by <Vazkii>. It's distributed as
|
||||
* part of the Botania Mod. Get the Source Code in github:
|
||||
* https://github.com/Vazkii/Botania
|
||||
*
|
||||
* Botania is Open Source and distributed under the
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Jul 8, 2014, 11:05:38 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import vazkii.botania.client.lib.LibRenderIDs;
|
||||
import net.minecraftforge.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
|
||||
public class RenderFloatingFlower implements ISimpleBlockRenderingHandler {
|
||||
|
||||
@Override
|
||||
public void renderInventoryBlock(Block block, int metadata, int modelId, RenderBlocks renderer) {
|
||||
// NO-OP, see RenderFloatingFlowerItem under ./item.
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldRender3DInInventory(int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderId() {
|
||||
return LibRenderIDs.idMiniIsland;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -7,7 +7,8 @@
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [May 30, 2015, 3:17:41 PM (GMT)]
|
||||
*/
|
||||
*//*
|
||||
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -49,3 +50,4 @@ public class RenderHourglass implements ISimpleBlockRenderingHandler {
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -7,7 +7,8 @@
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [May 15, 2015, 5:59:56 PM (GMT)]
|
||||
*/
|
||||
*//*
|
||||
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -48,3 +49,4 @@ public class RenderIncensePlate implements ISimpleBlockRenderingHandler{
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -7,7 +7,8 @@
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Jan 26, 2014, 12:25:06 AM (GMT)]
|
||||
*/
|
||||
*//*
|
||||
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -50,3 +51,4 @@ public class RenderPool implements ISimpleBlockRenderingHandler {
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -7,7 +7,8 @@
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Mar 18, 2015, 4:42:08 PM (GMT)]
|
||||
*/
|
||||
*//*
|
||||
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -47,3 +48,4 @@ public class RenderPump implements ISimpleBlockRenderingHandler {
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -1,52 +0,0 @@
|
||||
/**
|
||||
* This class was created by <Vazkii>. It's distributed as
|
||||
* part of the Botania Mod. Get the Source Code in github:
|
||||
* https://github.com/Vazkii/Botania
|
||||
*
|
||||
* Botania is Open Source and distributed under the
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Feb 18, 2014, 10:20:06 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import vazkii.botania.client.lib.LibRenderIDs;
|
||||
import vazkii.botania.client.render.tile.RenderTilePylon;
|
||||
import vazkii.botania.common.block.tile.TilePylon;
|
||||
import net.minecraftforge.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
|
||||
public class RenderPylon implements ISimpleBlockRenderingHandler {
|
||||
|
||||
@Override
|
||||
public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
|
||||
GlStateManager.pushMatrix();
|
||||
GlStateManager.translate(-0.5F, -0.7F, -0.5F);
|
||||
RenderTilePylon.green = metadata == 1;
|
||||
RenderTilePylon.pink = metadata == 2;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt(new TilePylon(), 0.0D, 0.0D, 0.0D, 0.0F);
|
||||
GlStateManager.popMatrix();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderId() {
|
||||
return LibRenderIDs.idPylon;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldRender3DInInventory(int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -7,7 +7,8 @@
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Jul 23, 2014, 6:23:54 PM (GMT)]
|
||||
*/
|
||||
*//*
|
||||
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -47,3 +48,4 @@ public class RenderSpawnerClaw implements ISimpleBlockRenderingHandler {
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -7,7 +7,8 @@
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Jan 25, 2014, 4:15:46 PM (GMT)]
|
||||
*/
|
||||
*//*
|
||||
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -134,3 +135,4 @@ public class RenderSpecialFlower implements ISimpleBlockRenderingHandler, IMulti
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -7,7 +7,8 @@
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Jan 25, 2014, 9:45:58 PM (GMT)]
|
||||
*/
|
||||
*//*
|
||||
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -53,3 +54,4 @@ public class RenderSpreader implements ISimpleBlockRenderingHandler {
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -7,7 +7,8 @@
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Oct 1, 2015, 9:40:27 PM (GMT)]
|
||||
*/
|
||||
*//*
|
||||
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -47,3 +48,4 @@ public class RenderTeruTeruBozu implements ISimpleBlockRenderingHandler {
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -7,7 +7,8 @@
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Jul 18, 2014, 11:43:37 PM (GMT)]
|
||||
*/
|
||||
*//*
|
||||
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -47,3 +48,4 @@ public class RenderTinyPotato implements ISimpleBlockRenderingHandler {
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -7,7 +7,8 @@
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Feb 28, 2015, 3:43:09 PM (GMT)]
|
||||
*/
|
||||
*//*
|
||||
|
||||
package vazkii.botania.client.render.item;
|
||||
|
||||
import net.minecraft.client.renderer.ItemRenderer;
|
||||
@@ -92,3 +93,4 @@ public class RenderBow implements IItemRenderer {
|
||||
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -1,54 +0,0 @@
|
||||
/**
|
||||
* This class was created by <Vazkii>. It's distributed as
|
||||
* part of the Botania Mod. Get the Source Code in github:
|
||||
* https://github.com/Vazkii/Botania
|
||||
*
|
||||
* Botania is Open Source and distributed under the
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Nov 17, 2014, 5:48:34 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.client.render.item;
|
||||
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.client.IItemRenderer;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import vazkii.botania.common.block.ModBlocks;
|
||||
import vazkii.botania.common.block.tile.TileFloatingFlower;
|
||||
import vazkii.botania.common.item.block.ItemBlockFloatingSpecialFlower;
|
||||
import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
|
||||
|
||||
public class RenderFloatingFlowerItem implements IItemRenderer {
|
||||
|
||||
@Override
|
||||
public boolean handleRenderType(ItemStack item, ItemRenderType type) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderItem(ItemRenderType type, ItemStack stack, Object... data) {
|
||||
GlStateManager.pushMatrix();
|
||||
GlStateManager.translate(-0.5F, -0.5F, -0.5F);
|
||||
GlStateManager.enableBlend();
|
||||
GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
|
||||
float s = 1.4F;
|
||||
GlStateManager.scale(s, s, s);
|
||||
GlStateManager.rotate(-5F, 1F, 0F, 0F);
|
||||
Item item = stack.getItem();
|
||||
TileFloatingFlower.forcedStack = item instanceof ItemBlockFloatingSpecialFlower ? ItemBlockSpecialFlower.ofType(ItemBlockSpecialFlower.getType(stack)) : new ItemStack(ModBlocks.flower, 1, stack.getItemDamage());
|
||||
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt(new TileFloatingFlower(), 0.0D, 0.0D, 0.0D, 0.0F);
|
||||
GlStateManager.disableBlend();
|
||||
GlStateManager.popMatrix();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -7,7 +7,8 @@
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Jan 31, 2014, 3:08:00 PM (GMT)]
|
||||
*/
|
||||
*//*
|
||||
|
||||
package vazkii.botania.client.render.item;
|
||||
|
||||
import java.awt.Color;
|
||||
@@ -120,4 +121,4 @@ public class RenderLens implements IItemRenderer {
|
||||
tessellator.draw();
|
||||
}
|
||||
|
||||
}
|
||||
}*/
|
||||
@@ -7,7 +7,8 @@
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Mar 25, 2014, 8:49:01 PM (GMT)]
|
||||
*/
|
||||
*//*
|
||||
|
||||
package vazkii.botania.client.render.item;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
@@ -114,3 +115,4 @@ public class RenderLexicon implements IItemRenderer {
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -7,7 +7,8 @@
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Aug 6, 2014, 10:04:57 PM (GMT)]
|
||||
*/
|
||||
*//*
|
||||
|
||||
package vazkii.botania.client.render.item;
|
||||
|
||||
import net.minecraft.client.renderer.ItemRenderer;
|
||||
@@ -77,3 +78,4 @@ public class RenderTransparentItem implements IItemRenderer {
|
||||
|
||||
|
||||
}
|
||||
*/
|
||||
Reference in new issue
Block a user