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 |
boundingBox, components, iconProviderBLOCK_STATE_IDS, blockHardness, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, blockState, capturedDrops, captureDrops, delegate, enableStats, 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 |
|---|
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.EnumWorldBlockLayer layer) |
protected net.minecraft.block.state.BlockState |
createBlockState() |
int |
getAmount(MBlockState state) |
net.minecraft.util.AxisAlignedBB[] |
getBoundingBoxes(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
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() |
void |
onBlockAdded(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
void |
onBlockPlacedBy(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.item.ItemStack stack) |
void |
onNeighborBlockChange(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.block.Block neighborBlock) |
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.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
net.minecraft.util.EnumFacing side) |
void |
updateTick(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand) |
addCollisionBoxesToList, addComponent, breakBlock, buildBlockState, canPlaceBlockAt, canPlaceBlockOnSide, collisionRayTrace, colorMultiplier, createIconProvider, damageDropped, getBoundingBox, getComponent, getComponents, getIconProvider, getItem, getItemDropped, getLightOpacity, getMapColor, getMixedBrightnessForBlock, getProperties, getRegistryName, getRenderColor, getRenderType, getSelectedBoundingBox, getStateFromItemStack, getSubBlocks, getUnlocalizedName, isFullBlock, isFullCube, isLadder, onBlockActivated, onBlockPlaced, quantityDropped, setNameaddDestroyEffects, addHitEffects, beginLeavesDecay, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceTorchOnTop, canProvidePower, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, captureDrops, colorMultiplier, createStackedBlock, createTileEntity, disableStats, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, getActualState, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLayer, getBlockState, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMaterial, getMobilityFlag, getOffsetType, getPickBlock, getPickBlock, getPlayerRelativeBlockHardness, getStateById, getStateForEntityRender, getStateId, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEqualTo, isFertile, isFireSource, isFlammable, isFlowerPot, isFoliage, isLeaves, isNormalCube, isNormalCube, isPassable, isProvidingStrongPower, isProvidingWeakPower, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isTranslucent, isVisuallyOpaque, isWood, modifyAcceleration, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockExploded, onBlockHarvested, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, spawnAsEntity, tickRateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCollisionBoundingBoxes, getRayTraceBoundingBox, getRenderBoundingBoxsetTexture, setTexture, setTexture, setTextureprotected 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.BlockState createBlockState()
createBlockState in class net.minecraft.block.Blockpublic void onBlockAdded(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state)
onBlockAdded in class net.minecraft.block.Blockpublic void onBlockPlacedBy(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.item.ItemStack stack)
onBlockPlacedBy in class MalisisBlockpublic void onNeighborBlockChange(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.block.Block neighborBlock)
onNeighborBlockChange in class MalisisBlockpublic void updateTick(net.minecraft.world.World world,
net.minecraft.util.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.AxisAlignedBB[] getBoundingBoxes(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
BoundingBoxType type)
IBoundingBoxAxisAlignedBB for this IBoundingBox.getBoundingBoxes in interface IBoundingBoxgetBoundingBoxes in class MalisisBlockworld - the worldpos - the postype - the typepublic boolean shouldSideBeRendered(net.minecraft.world.IBlockAccess world,
net.minecraft.util.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()
isOpaqueCube in class MalisisBlockpublic boolean canRenderInLayer(net.minecraft.util.EnumWorldBlockLayer layer)
canRenderInLayer in class net.minecraft.block.Block