public class FossilCleanerBlock extends MultiBlock
net.minecraft.block.Block.RenderSideCacheKey
net.minecraft.block.AbstractBlock.AbstractBlockState, net.minecraft.block.AbstractBlock.IExtendedPositionPredicate<A>, net.minecraft.block.AbstractBlock.IPositionPredicate, net.minecraft.block.AbstractBlock.OffsetType, net.minecraft.block.AbstractBlock.Properties
FACING, height, jsonOffset, length, MULTIPOS, width
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
Constructor and Description |
---|
FossilCleanerBlock()
Initializes the block.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy(net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state) |
int |
getSignal(net.minecraft.block.BlockState blockState,
net.minecraft.world.IBlockReader blockAccess,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side) |
protected java.util.Optional<net.minecraft.tileentity.TileEntity> |
getTileEntity(net.minecraft.world.IBlockReader world,
net.minecraft.block.BlockState state)
Gets the tile entity associated with the multi-block.
|
boolean |
isSignalSource(net.minecraft.block.BlockState state) |
boolean |
removedByPlayer(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player,
boolean willHarvest,
net.minecraft.fluid.FluidState fluid) |
net.minecraft.util.ActionResultType |
use(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand,
net.minecraft.util.math.BlockRayTraceResult hit) |
createBlockStateDefinition, createTileEntity, findBaseBlock, getDrops, getHeight, getJsonOffset, getLength, getLightValue, getMultiBlockBoundingBox, getShape, getWidth, newBlockEntity, onRemove, rotate
getMenuProvider, getRenderShape, triggerEvent
animateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, 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, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getFluidState, getInteractionShape, getLightBlock, getLootTable, getOcclusionShape, getOffsetType, getPistonPushReaction, getSeed, getShadeBrightness, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, mirror, neighborChanged, onPlace, onProjectileHit, randomTick, skipRendering, spawnAfterBreak, tick, 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, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, 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, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
protected java.util.Optional<net.minecraft.tileentity.TileEntity> getTileEntity(net.minecraft.world.IBlockReader world, net.minecraft.block.BlockState state)
MultiBlock
getTileEntity
in class MultiBlock
world
- The world the multi-block is in.state
- The multi-block to get a tile entity for.public net.minecraft.util.ActionResultType use(net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, net.minecraft.util.math.BlockRayTraceResult hit)
use
in class net.minecraft.block.AbstractBlock
public boolean removedByPlayer(net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity player, boolean willHarvest, net.minecraft.fluid.FluidState fluid)
removedByPlayer
in interface net.minecraftforge.common.extensions.IForgeBlock
removedByPlayer
in class MultiBlock
public void destroy(net.minecraft.world.IWorld world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)
destroy
in class net.minecraft.block.Block
public int getSignal(net.minecraft.block.BlockState blockState, net.minecraft.world.IBlockReader blockAccess, net.minecraft.util.math.BlockPos pos, net.minecraft.util.Direction side)
getSignal
in class net.minecraft.block.AbstractBlock
public boolean isSignalSource(net.minecraft.block.BlockState state)
isSignalSource
in class net.minecraft.block.AbstractBlock