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, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, displayOnCreativeTab, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, isBlockContainer, lightOpacity, lightValue, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, 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 |
|---|---|
int |
damageDropped(net.minecraft.block.state.IBlockState blockState) |
net.minecraft.util.BlockRenderLayer |
getBlockLayer() |
net.minecraft.util.math.AxisAlignedBB |
getBoundingBox(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess source,
net.minecraft.util.math.BlockPos pos) |
int |
getComparatorInputOverride(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos) |
int |
getDefaultCapacity()
Get the default capacity possible for this item/blockState type.
|
net.minecraft.block.state.IBlockState |
getExtendedState(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
java.lang.String |
getInfo(net.minecraft.item.ItemStack itemStack) |
static DarkTank |
getInstance()
Get the unique instance.
|
int |
getLightValue(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos blockPos) |
void |
getSubBlocks(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs creativeTabs,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> list) |
boolean |
hasComparatorInputOverride(net.minecraft.block.state.IBlockState blockState) |
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 |
isFullCube(net.minecraft.block.state.IBlockState state) |
boolean |
isNormalCube(net.minecraft.block.state.IBlockState blockState) |
boolean |
isOpaqueCube(net.minecraft.block.state.IBlockState blockState) |
boolean |
onBlockActivated(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.state.IBlockState blockState,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand,
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) |
boolean |
shouldSideBeRendered(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.util.EnumFacing side) |
protected net.minecraft.item.ItemStack |
tileDataToItemStack(org.cyclops.cyclopscore.tileentity.CyclopsTileEntity tile,
net.minecraft.item.ItemStack itemStack) |
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.
|
breakBlock, createBlockState, createDelegatedBlockState, createDynamicModel, createNewTileEntity, destroyBlock, getBlockColorHandler, getConfig, getDrops, getGuiTexture, getGuiTexture, getMetaFromState, getPickBlock, getRenderType, getStateForPlacement, getStateFromMeta, getTileEntity, hasDynamicModel, hasGui, isDropBlockItem, isKeepNBTOnDrop, isRotatable, onBlockExploded, onBlockPlacedBy, onPostBlockDestroyed, onPreBlockDestroyed, onPreBlockDestroyed, removedByPlayer, saveNBTToDroppedItem, setRotatable, writeAdditionalInfoeventReceived, harvestBlock, hasInvalidNeighbor, isInvalidNeighboraddCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, beginLeavesDecay, canBeConnectedTo, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, createTileEntity, disableStats, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, getActualState, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getCollisionBoundingBox, getCreativeTabToDisplayOn, getDefaultState, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMobilityFlag, getOffset, getOffsetType, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getSelectedBoundingBox, getSilkTouchDrop, getSoundType, getSoundType, getStateById, getStateForPlacement, getStateId, getStrongPower, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, getWeakPower, hasCustomBreakingProgress, hasTileEntity, hasTileEntity, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isFertile, isFireSource, isFlammable, isFoliage, isFullBlock, isFullyOpaque, isLadder, isLeaves, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isTranslucent, isWood, modifyAcceleration, neighborChanged, observedNeighborChange, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockHarvested, onEntityCollidedWithBlock, onEntityWalk, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, rayTrace, recolorBlock, registerBlocks, requiresUpdates, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, spawnAsEntity, tickRate, toString, updateTick, withMirror, withRotationpublic 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 net.minecraft.util.math.AxisAlignedBB getBoundingBox(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess source,
net.minecraft.util.math.BlockPos pos)
getBoundingBox in class net.minecraft.block.Blockpublic boolean hasComparatorInputOverride(net.minecraft.block.state.IBlockState blockState)
hasComparatorInputOverride in class net.minecraft.block.Blockpublic int getComparatorInputOverride(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos)
getComparatorInputOverride in class net.minecraft.block.Blockpublic boolean isOpaqueCube(net.minecraft.block.state.IBlockState blockState)
isOpaqueCube in class net.minecraft.block.Blockpublic boolean isNormalCube(net.minecraft.block.state.IBlockState blockState)
isNormalCube in class net.minecraft.block.Blockpublic boolean isFullCube(net.minecraft.block.state.IBlockState state)
isFullCube in class net.minecraft.block.Blockpublic boolean shouldSideBeRendered(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.util.EnumFacing side)
shouldSideBeRendered in class net.minecraft.block.Blockpublic boolean onBlockActivated(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.state.IBlockState blockState,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand,
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.IInformationProviderprotected net.minecraft.item.ItemStack tileDataToItemStack(org.cyclops.cyclopscore.tileentity.CyclopsTileEntity tile,
net.minecraft.item.ItemStack itemStack)
tileDataToItemStack in class org.cyclops.cyclopscore.config.configurable.ConfigurableBlockContainerpublic int getLightValue(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos blockPos)
getLightValue in class net.minecraft.block.Blockpublic int getDefaultCapacity()
IBlockTankgetDefaultCapacity 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,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> list)
getSubBlocks in class net.minecraft.block.Blockpublic net.minecraft.util.BlockRenderLayer 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.math.BlockPos pos)
getExtendedState in class net.minecraft.block.Block