public final class ControllerBlock
extends net.minecraft.block.Block
implements net.minecraft.block.BlockEntityProvider
| Constructor and Description |
|---|
ControllerBlock(net.minecraft.block.Block.Settings builder) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.block.entity.BlockEntity |
createBlockEntity(net.minecraft.world.BlockView view) |
int |
getComparatorOutput(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
boolean |
hasComparatorOutput(net.minecraft.block.BlockState state) |
void |
neighborUpdate(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block neighborBlock,
net.minecraft.util.math.BlockPos neighborPos,
boolean isMoved) |
void |
onBlockRemoved(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
boolean flag) |
net.minecraft.util.ActionResult |
onUse(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.hit.BlockHitResult blockHitResult) |
addStacksForDisplay, afterBreak, allowsSpawning, appendProperties, asItem, buildTooltip, calcBlockBreakingDelta, canBucketPlace, canMobSpawnInside, cannotConnect, canPlaceAt, canPlaceAtSide, canReplace, canSuffocate, createContainerFactory, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, emitsRedstonePower, getAmbientOcclusionLightLevel, getBlastResistance, getBlockFromItem, getCollisionShape, getCullingShape, getDefaultState, getDroppedStacks, getDroppedStacks, getDroppedStacks, getDropTableId, getFluidState, getHardness, getJumpVelocityMultiplier, getLuminance, getMapColor, getMaterial, getName, getOffsetPos, getOffsetType, getOpacity, getOutlineShape, getPickStack, getPistonBehavior, getPlacementState, getRawIdFromState, getRayTraceShape, getRenderingSeed, getRenderingState, getRenderType, getSlipperiness, getSoundGroup, getStateForNeighborUpdate, getStateFromRawId, getStateManager, getStrongRedstonePower, getTickRate, getTranslationKey, getVelocityMultiplier, getWeakRedstonePower, hasBlockEntity, hasDynamicBounds, hasEmissiveLighting, hasInWallOverlay, hasRandomTicks, hasSidedTransparency, isAir, isFaceFullSquare, isFullOpaque, isOpaque, isShapeFullCube, isSideInvisible, isSideSolidFullSquare, isSimpleFullBlock, isTranslucent, matches, method_9517, mirror, onBlockAction, onBlockAdded, onBlockBreakStart, onBreak, onBroken, onDestroyedByExplosion, onEntityCollision, onEntityLand, onLandedUpon, onPlaced, onProjectileHit, onStacksDropped, onSteppedOn, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, randomTick, replaceBlock, rotate, scheduledTick, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, shouldPostProcess, sideCoversSmallSquare, topCoversMediumSquare, toString, updateNeighborStatespublic ControllerBlock(net.minecraft.block.Block.Settings builder)
public net.minecraft.block.entity.BlockEntity createBlockEntity(net.minecraft.world.BlockView view)
createBlockEntity in interface net.minecraft.block.BlockEntityProviderpublic net.minecraft.util.ActionResult onUse(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.hit.BlockHitResult blockHitResult)
onUse in class net.minecraft.block.Blockpublic void onBlockRemoved(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
boolean flag)
onBlockRemoved in class net.minecraft.block.Blockpublic boolean hasComparatorOutput(net.minecraft.block.BlockState state)
hasComparatorOutput in class net.minecraft.block.Blockpublic int getComparatorOutput(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
getComparatorOutput in class net.minecraft.block.Blockpublic void neighborUpdate(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block neighborBlock,
net.minecraft.util.math.BlockPos neighborPos,
boolean isMoved)
neighborUpdate in class net.minecraft.block.Block