mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-27 23:45:57 +00:00
Spreader item models. Closes #4. Also fix third person pool model and restore old lexicon model until I'm ready to tackle it
This commit is contained in:
1 parent
93f869a8f5
commit
8f46355769
19 files changed
+129
-248
No files matched your search
@@ -10,19 +10,14 @@
|
||||
*/
|
||||
package vazkii.botania.common.item.block;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import vazkii.botania.api.state.enums.PoolVariant;
|
||||
import vazkii.botania.client.core.handler.ClientTickHandler;
|
||||
|
||||
public class ItemBlockPool extends ItemBlockWithMetadataAndName {
|
||||
public class ItemBlockPool extends ItemBlockWithMetaNameAndColor {
|
||||
|
||||
public ItemBlockPool(Block par2Block) {
|
||||
super(par2Block);
|
||||
@@ -35,15 +30,4 @@ public class ItemBlockPool extends ItemBlockWithMetadataAndName {
|
||||
par3List.add(StatCollector.translateToLocal("botaniamisc.creativePool" + i));
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public int getColorFromItemStack(ItemStack stack, int renderPass) {
|
||||
if (stack.getItemDamage() == PoolVariant.FABULOUS.ordinal() && renderPass == 0) {
|
||||
float time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
|
||||
return Color.getHSBColor(time * 0.005F, 0.6F, 1F).hashCode();
|
||||
} else {
|
||||
return 16777215;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user