public class ComposterBlock extends Block implements ISidedInventoryProvider
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ComposterBlock.EmptyInventory |
(package private) static class |
ComposterBlock.FullInventory |
(package private) static class |
ComposterBlock.PartialInventory |
Block.RenderSideCacheKey
AbstractBlock.AbstractBlockState, AbstractBlock.IExtendedPositionPredicate<A>, AbstractBlock.IPositionPredicate, AbstractBlock.OffsetType, AbstractBlock.Properties
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
Modifier and Type | Field and Description |
---|---|
static it.unimi.dsi.fastutil.objects.Object2FloatMap<IItemProvider> |
COMPOSTABLES |
static IntegerProperty |
LEVEL |
private static VoxelShape |
OUTER_SHAPE |
private static VoxelShape[] |
SHAPES |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
delegate
Constructor and Description |
---|
ComposterBlock(AbstractBlock.Properties p_i49986_1_) |
Modifier and Type | Method and Description |
---|---|
private static void |
add(float p_220290_0_,
IItemProvider p_220290_1_) |
private static BlockState |
addItem(BlockState p_235487_0_,
IWorld p_235487_1_,
BlockPos p_235487_2_,
ItemStack p_235487_3_) |
static void |
bootStrap() |
protected void |
createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_) |
private static BlockState |
empty(BlockState p_235490_0_,
IWorld p_235490_1_,
BlockPos p_235490_2_) |
static BlockState |
extractProduce(BlockState p_235489_0_,
World p_235489_1_,
BlockPos p_235489_2_) |
int |
getAnalogOutputSignal(BlockState p_180641_1_,
World p_180641_2_,
BlockPos p_180641_3_) |
VoxelShape |
getCollisionShape(BlockState p_220071_1_,
IBlockReader p_220071_2_,
BlockPos p_220071_3_,
ISelectionContext p_220071_4_) |
ISidedInventory |
getContainer(BlockState p_219966_1_,
IWorld p_219966_2_,
BlockPos p_219966_3_) |
VoxelShape |
getInteractionShape(BlockState p_199600_1_,
IBlockReader p_199600_2_,
BlockPos p_199600_3_) |
VoxelShape |
getShape(BlockState p_220053_1_,
IBlockReader p_220053_2_,
BlockPos p_220053_3_,
ISelectionContext p_220053_4_) |
static void |
handleFill(World p_220292_0_,
BlockPos p_220292_1_,
boolean p_220292_2_) |
boolean |
hasAnalogOutputSignal(BlockState p_149740_1_) |
static BlockState |
insertItem(BlockState p_235486_0_,
ServerWorld p_235486_1_,
ItemStack p_235486_2_,
BlockPos p_235486_3_) |
boolean |
isPathfindable(BlockState p_196266_1_,
IBlockReader p_196266_2_,
BlockPos p_196266_3_,
PathType p_196266_4_) |
void |
onPlace(BlockState p_220082_1_,
World p_220082_2_,
BlockPos p_220082_3_,
BlockState p_220082_4_,
boolean p_220082_5_) |
void |
tick(BlockState p_225534_1_,
ServerWorld p_225534_2_,
BlockPos p_225534_3_,
java.util.Random p_225534_4_) |
ActionResultType |
use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
animateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getStateForPlacement, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
attack, canBeReplaced, canBeReplaced, canSurvive, defaultMaterialColor, entityInside, getBlockSupportShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, isAir, isEntityBlock, isSignalSource, mirror, neighborChanged, onProjectileHit, onRemove, randomTick, rotate, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, updateShape, useShapeForLightOcclusion
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasTileEntity, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
public static final IntegerProperty LEVEL
public static final it.unimi.dsi.fastutil.objects.Object2FloatMap<IItemProvider> COMPOSTABLES
private static final VoxelShape OUTER_SHAPE
private static final VoxelShape[] SHAPES
public ComposterBlock(AbstractBlock.Properties p_i49986_1_)
public static void bootStrap()
private static void add(float p_220290_0_, IItemProvider p_220290_1_)
public static void handleFill(World p_220292_0_, BlockPos p_220292_1_, boolean p_220292_2_)
public VoxelShape getShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_)
getShape
in class AbstractBlock
public VoxelShape getInteractionShape(BlockState p_199600_1_, IBlockReader p_199600_2_, BlockPos p_199600_3_)
getInteractionShape
in class AbstractBlock
public VoxelShape getCollisionShape(BlockState p_220071_1_, IBlockReader p_220071_2_, BlockPos p_220071_3_, ISelectionContext p_220071_4_)
getCollisionShape
in class AbstractBlock
public void onPlace(BlockState p_220082_1_, World p_220082_2_, BlockPos p_220082_3_, BlockState p_220082_4_, boolean p_220082_5_)
onPlace
in class AbstractBlock
public ActionResultType use(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_)
use
in class AbstractBlock
public static BlockState insertItem(BlockState p_235486_0_, ServerWorld p_235486_1_, ItemStack p_235486_2_, BlockPos p_235486_3_)
public static BlockState extractProduce(BlockState p_235489_0_, World p_235489_1_, BlockPos p_235489_2_)
private static BlockState empty(BlockState p_235490_0_, IWorld p_235490_1_, BlockPos p_235490_2_)
private static BlockState addItem(BlockState p_235487_0_, IWorld p_235487_1_, BlockPos p_235487_2_, ItemStack p_235487_3_)
public void tick(BlockState p_225534_1_, ServerWorld p_225534_2_, BlockPos p_225534_3_, java.util.Random p_225534_4_)
tick
in class AbstractBlock
public boolean hasAnalogOutputSignal(BlockState p_149740_1_)
hasAnalogOutputSignal
in class AbstractBlock
public int getAnalogOutputSignal(BlockState p_180641_1_, World p_180641_2_, BlockPos p_180641_3_)
getAnalogOutputSignal
in class AbstractBlock
protected void createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)
createBlockStateDefinition
in class Block
public boolean isPathfindable(BlockState p_196266_1_, IBlockReader p_196266_2_, BlockPos p_196266_3_, PathType p_196266_4_)
isPathfindable
in class AbstractBlock
public ISidedInventory getContainer(BlockState p_219966_1_, IWorld p_219966_2_, BlockPos p_219966_3_)
getContainer
in interface ISidedInventoryProvider