Package net.minecraft.block
Class LeveledCauldronBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.AbstractCauldronBlock
net.minecraft.block.LeveledCauldronBlock
- All Implemented Interfaces:
ItemConvertible
public class LeveledCauldronBlock extends AbstractCauldronBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroup
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Fields Modifier and Type Field Description static IntProperty
LEVEL
private Predicate<Biome.Precipitation>
precipitationPredicate
static Predicate<Biome.Precipitation>
RAIN_PREDICATE
static Predicate<Biome.Precipitation>
SNOW_PREDICATE
Fields inherited from class net.minecraft.block.AbstractCauldronBlock
OUTLINE_SHAPE
Fields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
-
Constructor Summary
Constructors Constructor Description LeveledCauldronBlock(AbstractBlock.Settings settings, Predicate<Biome.Precipitation> precipitationPredicate, Map<Item,CauldronBehavior> behaviorMap)
-
Method Summary
Modifier and Type Method Description protected void
appendProperties(StateManager.Builder<Block,BlockState> builder)
protected boolean
canBeFilledByDripstone(Fluid fluid)
static void
decrementFluidLevel(BlockState state, World world, BlockPos pos)
protected void
fillFromDripstone(BlockState state, World world, BlockPos pos, Fluid fluid)
int
getComparatorOutput(BlockState state, World world, BlockPos pos)
protected double
getFluidHeight(BlockState state)
boolean
isFull(BlockState state)
void
onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity)
void
precipitationTick(BlockState state, World world, BlockPos pos, Biome.Precipitation precipitation)
Methods inherited from class net.minecraft.block.AbstractCauldronBlock
canPathfindThrough, getOutlineShape, getRaycastShape, hasComparatorOutput, isEntityTouchingFluid, onUse, scheduledTick
Methods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTick, rotate
-
Field Details
-
LEVEL
-
RAIN_PREDICATE
-
SNOW_PREDICATE
-
precipitationPredicate
-
-
Constructor Details
-
LeveledCauldronBlock
public LeveledCauldronBlock(AbstractBlock.Settings settings, Predicate<Biome.Precipitation> precipitationPredicate, Map<Item,CauldronBehavior> behaviorMap)
-
-
Method Details
-
isFull
-
canBeFilledByDripstone
- Overrides:
canBeFilledByDripstone
in classAbstractCauldronBlock
-
getFluidHeight
- Overrides:
getFluidHeight
in classAbstractCauldronBlock
-
onEntityCollision
- Overrides:
onEntityCollision
in classAbstractBlock
-
decrementFluidLevel
-
precipitationTick
public void precipitationTick(BlockState state, World world, BlockPos pos, Biome.Precipitation precipitation)- Overrides:
precipitationTick
in classBlock
-
getComparatorOutput
- Overrides:
getComparatorOutput
in classAbstractBlock
-
appendProperties
- Overrides:
appendProperties
in classBlock
-
fillFromDripstone
- Overrides:
fillFromDripstone
in classAbstractCauldronBlock
-