public class CarvedPumpkinBlock extends HorizontalFacingBlock implements Wearable
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>| Modifier and Type | Field and Description |
|---|---|
static DirectionProperty |
FACING |
private BlockPattern |
ironGolemDispenserPattern |
private BlockPattern |
ironGolemPattern |
private static Predicate<BlockState> |
IS_GOLEM_HEAD_PREDICATE |
private BlockPattern |
snowGolemDispenserPattern |
private BlockPattern |
snowGolemPattern |
LOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Modifier | Constructor and Description |
|---|---|
protected |
CarvedPumpkinBlock(AbstractBlock.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendProperties(StateManager.Builder<Block,BlockState> builder) |
boolean |
canDispense(WorldView worldView,
BlockPos pos) |
private BlockPattern |
getIronGolemDispenserPattern() |
private BlockPattern |
getIronGolemPattern() |
BlockState |
getPlacementState(ItemPlacementContext ctx) |
private BlockPattern |
getSnowGolemDispenserPattern() |
private BlockPattern |
getSnowGolemPattern() |
void |
onBlockAdded(BlockState state,
World world,
BlockPos pos,
BlockState oldState,
boolean notify) |
private void |
trySpawnEntity(World world,
BlockPos pos) |
mirror, rotateaddStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, is, isFaceFullSquare, isIn, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringcalcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, neighborUpdate, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, scheduledTickpublic static final DirectionProperty FACING
private static final Predicate<BlockState> IS_GOLEM_HEAD_PREDICATE
@Nullable private BlockPattern snowGolemDispenserPattern
@Nullable private BlockPattern snowGolemPattern
@Nullable private BlockPattern ironGolemDispenserPattern
@Nullable private BlockPattern ironGolemPattern
protected CarvedPumpkinBlock(AbstractBlock.Settings settings)
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)
onBlockAdded in class AbstractBlockpublic BlockState getPlacementState(ItemPlacementContext ctx)
getPlacementState in class Blockprotected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties in class Blockprivate BlockPattern getSnowGolemDispenserPattern()
private BlockPattern getSnowGolemPattern()
private BlockPattern getIronGolemDispenserPattern()
private BlockPattern getIronGolemPattern()