public class CarvedPumpkinBlock extends HorizontalBlock
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey| Modifier and Type | Field and Description |
|---|---|
static DirectionProperty |
FACING |
private BlockPattern |
golemBasePattern |
private BlockPattern |
golemPattern |
private static java.util.function.Predicate<BlockState> |
IS_PUMPKIN |
private BlockPattern |
snowmanBasePattern |
private BlockPattern |
snowmanPattern |
HORIZONTAL_FACINGBLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomlydelegate| Modifier | Constructor and Description |
|---|---|
protected |
CarvedPumpkinBlock(Block.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDispenserPlace(IWorldReader p_196354_1_,
BlockPos p_196354_2_) |
boolean |
canEntitySpawn(BlockState state,
IBlockReader worldIn,
BlockPos pos,
EntityType<?> type) |
protected void |
fillStateContainer(StateContainer.Builder<Block,BlockState> builder) |
private BlockPattern |
getGolemBasePattern() |
private BlockPattern |
getGolemPattern() |
private BlockPattern |
getSnowmanBasePattern() |
private BlockPattern |
getSnowmanPattern() |
BlockState |
getStateForPlacement(BlockItemUseContext context) |
void |
onBlockAdded(BlockState state,
World worldIn,
BlockPos pos,
BlockState oldState,
boolean isMoving) |
private void |
trySpawnGolem(World p_196358_1_,
BlockPos p_196358_2_) |
mirror, rotateaddInformation, allowsMovement, animateTick, asItem, canDropFromExplosion, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getRenderType, getShape, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isTransparent, isValidPosition, isVariableOpacity, isViewBlocking, makeCuboidShape, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockActivated, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, onReplaced, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, tick, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors, updatePostPlacementgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isSlimeBlock, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic static final DirectionProperty FACING
@Nullable private BlockPattern snowmanBasePattern
@Nullable private BlockPattern snowmanPattern
@Nullable private BlockPattern golemBasePattern
@Nullable private BlockPattern golemPattern
private static final java.util.function.Predicate<BlockState> IS_PUMPKIN
protected CarvedPumpkinBlock(Block.Properties properties)
public void onBlockAdded(BlockState state, World worldIn, BlockPos pos, BlockState oldState, boolean isMoving)
onBlockAdded in class Blockpublic boolean canDispenserPlace(IWorldReader p_196354_1_, BlockPos p_196354_2_)
public BlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement in class Blockprotected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer in class Blockprivate BlockPattern getSnowmanBasePattern()
private BlockPattern getSnowmanPattern()
private BlockPattern getGolemBasePattern()
private BlockPattern getGolemPattern()
public boolean canEntitySpawn(BlockState state, IBlockReader worldIn, BlockPos pos, EntityType<?> type)
canEntitySpawn in class Block