Modifier and Type | Field and Description |
---|---|
net.minecraft.util.ResourceLocation |
identifier
The identifier for the tier type.
|
java.lang.Object |
recipe
The crafting ingredient for the tier.
|
net.minecraft.block.state.IBlockState |
renderState
The block state to use when rendering this tier.
|
int |
tier
The tier of the tank.
|
Constructor and Description |
---|
TankTier(net.minecraft.util.ResourceLocation identifier,
net.minecraft.block.state.IBlockState renderState,
java.lang.Object recipe,
int tier)
Constructs the tank tier.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canApplyUpgrage(TankTier upgradeTier)
Checks if a tier can be upgraded into another one.
|
int |
compareTo(TankTier otherTier) |
int |
getCapacity()
Gets the capacity for the tier.
|
public final net.minecraft.util.ResourceLocation identifier
public final java.lang.Object recipe
public final int tier
public final net.minecraft.block.state.IBlockState renderState
public TankTier(net.minecraft.util.ResourceLocation identifier, net.minecraft.block.state.IBlockState renderState, java.lang.Object recipe, int tier)
identifier
- The identifier for the tier. Follows standard mc format.renderState
- The block to use in tank rendering.recipe
- The crafting ingredient for the tier.tier
- The tier of the tank, used to establish the upgrade hierarchy.public int getCapacity()
public boolean canApplyUpgrage(TankTier upgradeTier)
upgradeTier
- The new tier being applied.