public abstract class FiniteLiquid extends MalisisBlock
| Modifier and Type | Class and Description |
|---|---|
static class |
FiniteLiquid.FloodFill |
static class |
FiniteLiquid.SpreadData |
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.block.properties.PropertyInteger |
AMOUNT |
protected java.lang.String |
name |
blockComponents, boundingBox, componentsBLOCK_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 |
|---|
FiniteLiquid(net.minecraft.block.material.Material material) |
| Modifier and Type | Method and Description |
|---|---|
int |
addAmount(net.minecraft.world.World world,
MBlockState state,
int amount) |
boolean |
canRenderInLayer(net.minecraft.util.BlockRenderLayer layer) |
protected net.minecraft.block.state.BlockStateContainer |
createBlockState() |
int |
getAmount(MBlockState state) |
net.minecraft.util.math.AxisAlignedBB[] |
getBoundingBoxes(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
BoundingBoxType type)
Gets the
AxisAlignedBB for this IBoundingBox. |
int |
getMetaFromState(net.minecraft.block.state.IBlockState state) |
net.minecraft.block.state.IBlockState |
getStateFromMeta(int meta) |
boolean |
isOpaqueCube(net.minecraft.block.state.IBlockState state) |
void |
neighborChanged(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block neighborBlock) |
void |
onBlockAdded(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
void |
onBlockPlacedBy(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.item.ItemStack stack) |
void |
register()
Registers this
IRegisterable into the MalisisRegistry. |
void |
setAmount(net.minecraft.world.World world,
MBlockState state,
int amount) |
void |
setDelay(int delay) |
boolean |
shouldSideBeRendered(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side) |
void |
updateTick(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand) |
addCollisionBoxToList, addComponent, breakBlock, buildBlockState, canPlaceBlockAt, canPlaceBlockOnSide, collisionRayTrace, damageDropped, getBlockComponents, getBoundingBox, getComponents, getItem, getItemDropped, getLightOpacity, getMapColor, getName, getPackedLightmapCoords, getProperties, getRenderType, getSelectedBoundingBox, getStateFromItemStack, getSubBlocks, getUnlocalizedName, isFullBlock, isFullCube, isLadder, onBlockActivated, onBlockPlaced, quantityDropped, setName, setTexture, setTexture, setTexture, setTextureaddCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, beginLeavesDecay, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canReplace, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, createStackedBlock, createTileEntity, disableStats, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, getActualState, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLayer, getBlockState, getBoundingBox, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMaterial, getMobilityFlag, getOffsetType, getPickBlock, getPlayerRelativeBlockHardness, getSoundType, 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, isFullyOpaque, isLeaves, isNormalCube, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isTranslucent, isVisuallyOpaque, isWood, modifyAcceleration, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockExploded, onBlockHarvested, onEntityCollidedWithBlock, onEntityWalk, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, spawnAsEntity, tickRate, toString, withMirror, withRotationgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCollisionBoundingBoxes, getRayTraceBoundingBox, getRenderBoundingBox, getRenderingBoundsgetComponentprotected java.lang.String name
public static final net.minecraft.block.properties.PropertyInteger AMOUNT
public void setDelay(int delay)
public void register()
IRegisterableIRegisterable into the MalisisRegistry.protected net.minecraft.block.state.BlockStateContainer createBlockState()
createBlockState in class net.minecraft.block.Blockpublic void onBlockAdded(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
onBlockAdded in class MalisisBlockpublic void onBlockPlacedBy(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.item.ItemStack stack)
onBlockPlacedBy in class MalisisBlockpublic void neighborChanged(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block neighborBlock)
neighborChanged in class MalisisBlockpublic void updateTick(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand)
updateTick in class net.minecraft.block.Blockpublic int getAmount(MBlockState state)
public void setAmount(net.minecraft.world.World world,
MBlockState state,
int amount)
public int addAmount(net.minecraft.world.World world,
MBlockState state,
int amount)
public net.minecraft.util.math.AxisAlignedBB[] getBoundingBoxes(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
BoundingBoxType type)
IBoundingBoxAxisAlignedBB for this IBoundingBox.getBoundingBoxes in interface IBoundingBoxgetBoundingBoxes in class MalisisBlockworld - the worldpos - the postype - the typepublic boolean shouldSideBeRendered(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
shouldSideBeRendered in class MalisisBlockpublic net.minecraft.block.state.IBlockState getStateFromMeta(int meta)
getStateFromMeta in class MalisisBlockpublic int getMetaFromState(net.minecraft.block.state.IBlockState state)
getMetaFromState in class MalisisBlockpublic boolean isOpaqueCube(net.minecraft.block.state.IBlockState state)
isOpaqueCube in class MalisisBlockpublic boolean canRenderInLayer(net.minecraft.util.BlockRenderLayer layer)
canRenderInLayer in class net.minecraft.block.Block