Revert "Removed bucket textures as it now generates them at runtime"
This reverts commit 4585684fe2
.
|
@ -1,15 +1,19 @@
|
|||
package techreborn.items.tools;
|
||||
|
||||
import me.modmuss50.jsonDestroyer.api.ITexturedBucket;
|
||||
import me.modmuss50.jsonDestroyer.api.ITexturedItem;
|
||||
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemBucket;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
import reborncore.RebornCore;
|
||||
import techreborn.blocks.fluid.BlockFluidBase;
|
||||
import techreborn.client.TechRebornCreativeTabMisc;
|
||||
|
||||
public class ItemFluidbucket extends ItemBucket implements ITexturedBucket {
|
||||
public class ItemFluidbucket extends ItemBucket implements ITexturedItem {
|
||||
private String iconName;
|
||||
|
||||
Fluid containedFluid;
|
||||
|
@ -30,18 +34,28 @@ public class ItemFluidbucket extends ItemBucket implements ITexturedBucket {
|
|||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isGas(int damage) {
|
||||
return false;
|
||||
}
|
||||
// @Override
|
||||
// public boolean isGas(int damage) {
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public Fluid getFluid(int damage) {
|
||||
// return containedFluid;
|
||||
// }
|
||||
|
||||
@Override
|
||||
public Fluid getFluid(int damage) {
|
||||
return containedFluid;
|
||||
public String getTextureName(int damage) {
|
||||
return "techreborn:items/bucket/" + iconName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxMeta() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModelResourceLocation getModel(ItemStack stack, EntityPlayer player, int useRemaining) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
After Width: | Height: | Size: 1.5 KiB |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":2
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 3.5 KiB |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":2
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 2.2 KiB |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":2
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 968 B |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":2
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 193 B |
After Width: | Height: | Size: 2.7 KiB |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":2
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 193 B |
After Width: | Height: | Size: 193 B |
After Width: | Height: | Size: 1 KiB |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":1
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 193 B |
After Width: | Height: | Size: 2.9 KiB |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":2
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 1.9 KiB |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":2
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 193 B |
After Width: | Height: | Size: 1.5 KiB |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":2
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 3.2 KiB |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":2
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 193 B |
After Width: | Height: | Size: 193 B |
After Width: | Height: | Size: 2.7 KiB |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":2
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 1.5 KiB |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":2
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 3.7 KiB |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":2
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 2.5 KiB |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":2
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 193 B |
After Width: | Height: | Size: 967 B |
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"animation":{
|
||||
"frametime":2
|
||||
}
|
||||
}
|