public class DarkTank extends org.cyclops.cyclopscore.config.configurable.ConfigurableBlockContainer implements org.cyclops.cyclopscore.item.IInformationProvider, IBlockTank
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.block.properties.PropertyBool |
DRAINING |
static net.minecraftforge.common.property.IUnlistedProperty<java.lang.Integer> |
TANK_CAPACITY |
static net.minecraftforge.common.property.IUnlistedProperty<net.minecraftforge.fluids.FluidStack> |
TANK_FLUID |
eConfig, hasGui, isInventoryBlock, pass, propertyManager, randomBLOCK_STATE_IDS, blockHardness, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, blockState, capturedDrops, captureDrops, delegate, enableStats, field_181083_K, fullBlock, harvesters, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, RANDOM, SLIME_SOUND, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, translucent, useNeighborBrightness| Constructor and Description |
|---|
DarkTank(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<org.cyclops.cyclopscore.config.extendedconfig.BlockConfig> eConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCollisionBoxesToList(net.minecraft.world.World world,
net.minecraft.util.BlockPos blockPos,
net.minecraft.block.state.IBlockState blockState,
net.minecraft.util.AxisAlignedBB area,
java.util.List list,
net.minecraft.entity.Entity entity) |
int |
damageDropped(net.minecraft.block.state.IBlockState blockState) |
net.minecraft.util.EnumWorldBlockLayer |
getBlockLayer() |
int |
getComparatorInputOverride(net.minecraft.world.World world,
net.minecraft.util.BlockPos blockPos) |
net.minecraft.block.state.IBlockState |
getExtendedState(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos) |
java.lang.String |
getInfo(net.minecraft.item.ItemStack itemStack) |
static DarkTank |
getInstance()
Get the unique instance.
|
int |
getLightValue(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos blockPos) |
int |
getMaxCapacity()
Get the maximum capacity possible for this item/blockState type.
|
void |
getSubBlocks(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs creativeTabs,
java.util.List list) |
int |
getTankCapacity(net.minecraft.item.ItemStack itemStack)
Get the maximal tank capacity.
|
java.lang.String |
getTankNBTName()
Get the NBT name for the inner tank.
|
boolean |
hasComparatorInputOverride() |
boolean |
isActivatable() |
boolean |
isActivated(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.Entity entity)
If the given item is activated.
|
boolean |
isNormalCube() |
boolean |
isOpaqueCube() |
boolean |
onBlockActivated(net.minecraft.world.World world,
net.minecraft.util.BlockPos blockPos,
net.minecraft.block.state.IBlockState blockState,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumFacing side,
float motionX,
float motionY,
float motionZ) |
void |
onModelBakeEvent(net.minecraftforge.client.event.ModelBakeEvent event)
Called for baking the model of the item version of the tank.
|
void |
provideInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4) |
void |
setBlockBoundsBasedOnState(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos blockPos) |
void |
setBlockBoundsForItemRender() |
void |
setTankCapacity(net.minecraft.item.ItemStack itemStack,
int capacity)
Set the maximal tank capacity.
|
void |
setTankCapacity(net.minecraft.nbt.NBTTagCompound tag,
int capacity)
Set the maximal tank capacity.
|
boolean |
shouldSideBeRendered(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos blockPos,
net.minecraft.util.EnumFacing side) |
net.minecraft.item.ItemStack |
toggleActivation(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
Toggle the activation of the item.
|
void |
writeAdditionalInfo(net.minecraft.tileentity.TileEntity tile,
net.minecraft.nbt.NBTTagCompound tag) |
breakBlock, createBlockState, createDelegatedBlockState, createDynamicModel, createNewTileEntity, destroyBlock, getConfig, getDrops, getGuiTexture, getGuiTexture, getMetaFromState, getPickBlock, getRenderType, getStateFromMeta, getTileEntity, hasDynamicModel, hasGui, isDropBlockItem, isKeepNBTOnDrop, isRotatable, onBlockExploded, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onPostBlockDestroyed, onPreBlockDestroyed, onPreBlockDestroyed, saveNBTToDroppedItem, setRotatablefunc_181086_a, func_181087_e, onBlockEventReceivedaddDestroyEffects, addHitEffects, addLandingEffects, beginLeavesDecay, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, colorMultiplier, colorMultiplier, createStackedBlock, createTileEntity, disableStats, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_181623_g, getActualState, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getCollisionBoundingBox, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getOffsetType, getPickBlock, getPlayerRelativeBlockHardness, getRegistryName, getRenderColor, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateId, getStrongPower, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, getWeakPower, harvestBlock, hasTileEntity, hasTileEntity, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEqualTo, isFertile, isFireSource, isFlammable, isFlowerPot, isFoliage, isFullBlock, isFullCube, isLadder, isLeaves, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isTranslucent, isVisuallyOpaque, isWood, modifyAcceleration, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, onNeighborBlockChange, onNeighborChange, onPlantGrow, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockBounds, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setRegistryName, setRegistryName, setRegistryName, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, spawnAsEntity, tickRate, toString, updateTickpublic static final net.minecraft.block.properties.PropertyBool DRAINING
public static final net.minecraftforge.common.property.IUnlistedProperty<net.minecraftforge.fluids.FluidStack> TANK_FLUID
public static final net.minecraftforge.common.property.IUnlistedProperty<java.lang.Integer> TANK_CAPACITY
public DarkTank(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<org.cyclops.cyclopscore.config.extendedconfig.BlockConfig> eConfig)
public static DarkTank getInstance()
public void setBlockBoundsForItemRender()
setBlockBoundsForItemRender in class net.minecraft.block.Blockpublic void setBlockBoundsBasedOnState(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos blockPos)
setBlockBoundsBasedOnState in class net.minecraft.block.Blockpublic void addCollisionBoxesToList(net.minecraft.world.World world,
net.minecraft.util.BlockPos blockPos,
net.minecraft.block.state.IBlockState blockState,
net.minecraft.util.AxisAlignedBB area,
java.util.List list,
net.minecraft.entity.Entity entity)
addCollisionBoxesToList in class net.minecraft.block.Blockpublic boolean hasComparatorInputOverride()
hasComparatorInputOverride in class net.minecraft.block.Blockpublic int getComparatorInputOverride(net.minecraft.world.World world,
net.minecraft.util.BlockPos blockPos)
getComparatorInputOverride in class net.minecraft.block.Blockpublic boolean isOpaqueCube()
isOpaqueCube in class net.minecraft.block.Blockpublic boolean isNormalCube()
isNormalCube in class net.minecraft.block.Blockpublic boolean shouldSideBeRendered(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos blockPos,
net.minecraft.util.EnumFacing side)
shouldSideBeRendered in class net.minecraft.block.Blockpublic boolean onBlockActivated(net.minecraft.world.World world,
net.minecraft.util.BlockPos blockPos,
net.minecraft.block.state.IBlockState blockState,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumFacing side,
float motionX,
float motionY,
float motionZ)
onBlockActivated in class net.minecraft.block.Blockpublic java.lang.String getInfo(net.minecraft.item.ItemStack itemStack)
getInfo in interface org.cyclops.cyclopscore.item.IInformationProviderpublic void provideInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4)
provideInformation in interface org.cyclops.cyclopscore.item.IInformationProviderpublic java.lang.String getTankNBTName()
IBlockTankgetTankNBTName in interface IBlockTankpublic int getTankCapacity(net.minecraft.item.ItemStack itemStack)
IBlockTankgetTankCapacity in interface IBlockTankitemStack - The item stack.public void setTankCapacity(net.minecraft.item.ItemStack itemStack,
int capacity)
IBlockTanksetTankCapacity in interface IBlockTankitemStack - The item stack.capacity - The maximal tank capacity in mB.public void setTankCapacity(net.minecraft.nbt.NBTTagCompound tag,
int capacity)
IBlockTanksetTankCapacity in interface IBlockTanktag - The tag of an item stack.capacity - The maximal tank capacity in mB.public void writeAdditionalInfo(net.minecraft.tileentity.TileEntity tile,
net.minecraft.nbt.NBTTagCompound tag)
writeAdditionalInfo in class org.cyclops.cyclopscore.config.configurable.ConfigurableBlockContainerpublic int getLightValue(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos blockPos)
getLightValue in class net.minecraft.block.Blockpublic int getMaxCapacity()
IBlockTankIBlockTank.getTankCapacity(ItemStack)
if this capacity is variable.getMaxCapacity in interface IBlockTankpublic boolean isActivatable()
isActivatable in interface IBlockTankpublic net.minecraft.item.ItemStack toggleActivation(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
IBlockTanktoggleActivation in interface IBlockTankitemStack - The item.world - The world.player - The player holding the item.public boolean isActivated(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.Entity entity)
IBlockTankisActivated in interface IBlockTankitemStack - The item.world - The world.entity - The entity holding the item.public int damageDropped(net.minecraft.block.state.IBlockState blockState)
damageDropped in class net.minecraft.block.Blockpublic void getSubBlocks(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs creativeTabs,
java.util.List list)
getSubBlocks in class net.minecraft.block.Blockpublic net.minecraft.util.EnumWorldBlockLayer getBlockLayer()
getBlockLayer in class net.minecraft.block.Blockpublic void onModelBakeEvent(net.minecraftforge.client.event.ModelBakeEvent event)
onModelBakeEvent in class org.cyclops.cyclopscore.config.configurable.ConfigurableBlockContainerevent - The bake event.public net.minecraft.block.state.IBlockState getExtendedState(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos)
getExtendedState in class net.minecraft.block.Block