Add tickRate setter to the ForgeFlowingFluid Properties builder.

This commit is contained in:
David Quintana 2020-04-23 14:57:06 +02:00
parent 0512a47eba
commit 9a6d1c390e

View file

@ -53,7 +53,6 @@ public abstract class ForgeFlowingFluid extends FlowingFluid
private final int slopeFindDistance;
private final int levelDecreasePerBlock;
private final float explosionResistance;
//private final BlockRenderLayer renderLayer; // TODO: reimplement
private final int tickRate;
protected ForgeFlowingFluid(Properties properties)
@ -67,7 +66,6 @@ public abstract class ForgeFlowingFluid extends FlowingFluid
this.slopeFindDistance = properties.slopeFindDistance;
this.levelDecreasePerBlock = properties.levelDecreasePerBlock;
this.explosionResistance = properties.explosionResistance;
//this.renderLayer = properties.renderLayer;
this.tickRate = properties.tickRate;
}
@ -108,12 +106,6 @@ public abstract class ForgeFlowingFluid extends FlowingFluid
return levelDecreasePerBlock;
}
/*@Override
public BlockRenderLayer getRenderLayer()
{
return renderLayer;
}*/
@Override
public Item getFilledBucket()
{
@ -207,7 +199,6 @@ public abstract class ForgeFlowingFluid extends FlowingFluid
private int slopeFindDistance = 4;
private int levelDecreasePerBlock = 1;
private float explosionResistance = 1;
//private BlockRenderLayer renderLayer = BlockRenderLayer.TRANSLUCENT;
private int tickRate = 5;
public Properties(Supplier<? extends Fluid> still, Supplier<? extends Fluid> flowing, FluidAttributes.Builder attributes)
@ -253,10 +244,10 @@ public abstract class ForgeFlowingFluid extends FlowingFluid
return this;
}
/*public Properties renderLayer(BlockRenderLayer layer)
public Properties tickRate(int tickRate)
{
this.renderLayer = layer;
this.tickRate = tickRate;
return this;
}*/
}
}
}