public class EntangledChalice extends org.cyclops.cyclopscore.config.configurable.ConfigurableBlockContainer implements org.cyclops.cyclopscore.item.IInformationProvider, IBlockTank, IBlockRarityProvider
| Modifier and Type | Field and Description |
|---|---|
static net.minecraftforge.common.property.IUnlistedProperty<net.minecraftforge.fluids.FluidStack> |
TANK_FLUID |
static net.minecraftforge.common.property.IUnlistedProperty<java.lang.String> |
TANK_ID |
eConfig, hasGui, isInventoryBlock, pass, propertyManager, randomBLOCK_STATE_IDS, blockHardness, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, isBlockContainer, lightOpacity, lightValue, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightness| Constructor and Description |
|---|
EntangledChalice(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<org.cyclops.cyclopscore.config.extendedconfig.BlockConfig> eConfig) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.math.AxisAlignedBB |
getBoundingBox(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess source,
net.minecraft.util.math.BlockPos pos) |
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 EntangledChalice |
getInstance()
Get the unique instance.
|
int |
getLightValue(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos blockPos) |
int |
getMaxCapacity()
Get the maximum capacity possible for this item/blockState type.
|
net.minecraft.item.EnumRarity |
getRarity(net.minecraft.item.ItemStack itemStack) |
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 |
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(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.item.ItemStack heldItem,
net.minecraft.util.EnumFacing side,
float motionX,
float motionY,
float motionZ) |
void |
provideInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4) |
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.
|
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, getBlockColorHandler, getConfig, getDrops, getGuiTexture, getGuiTexture, getMetaFromState, getPickBlock, getRenderType, getStateFromMeta, getTileEntity, hasDynamicModel, hasGui, isDropBlockItem, isKeepNBTOnDrop, isRotatable, onBlockExploded, onBlockPlaced, onBlockPlacedBy, onModelBakeEvent, onPostBlockDestroyed, onPreBlockDestroyed, onPreBlockDestroyed, removedByPlayer, saveNBTToDroppedItem, setRotatablehasInvalidNeighbor, isInvalidNeighbor, onBlockEventReceivedaddCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, beginLeavesDecay, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canRenderInLayer, canReplace, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, createStackedBlock, createTileEntity, damageDropped, disableStats, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, getActualState, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLayer, getBlockState, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMobilityFlag, getOffsetType, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getSelectedBoundingBox, getSoundType, getStateById, getStateId, getStrongPower, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, getWeakPower, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isFertile, isFireSource, isFlammable, isFoliage, isFullBlock, isFullCube, isFullyOpaque, isLadder, isLeaves, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isTranslucent, isVisuallyOpaque, isWood, modifyAcceleration, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockHarvested, onEntityCollidedWithBlock, onEntityWalk, onFallenUpon, onLanded, onNeighborBlockChange, 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, shouldSideBeRendered, spawnAsEntity, tickRate, toString, updateTick, withMirror, withRotationpublic static final net.minecraftforge.common.property.IUnlistedProperty<java.lang.String> TANK_ID
public static final net.minecraftforge.common.property.IUnlistedProperty<net.minecraftforge.fluids.FluidStack> TANK_FLUID
public EntangledChalice(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<org.cyclops.cyclopscore.config.extendedconfig.BlockConfig> eConfig)
public static EntangledChalice 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 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 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.item.ItemStack heldItem,
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 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 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 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.item.EnumRarity getRarity(net.minecraft.item.ItemStack itemStack)
getRarity in interface IBlockRarityProvideritemStack - The itemstack with this blockState.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