public final class CasingBlock
extends net.minecraft.block.Block
implements net.minecraft.block.BlockEntityProvider
net.minecraft.block.Block.NeighborGroupnet.minecraft.block.AbstractBlock.AbstractBlockState, net.minecraft.block.AbstractBlock.ContextPredicate, net.minecraft.block.AbstractBlock.OffsetType, net.minecraft.block.AbstractBlock.Settings, net.minecraft.block.AbstractBlock.TypedContextPredicate<A>| Constructor and Description |
|---|
CasingBlock(net.minecraft.block.AbstractBlock.Settings builder) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
activate(net.minecraft.item.ItemUsageContext context) |
protected void |
appendProperties(net.minecraft.state.StateManager.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder) |
net.minecraft.block.entity.BlockEntity |
createBlockEntity(net.minecraft.world.BlockView view) |
boolean |
emitsRedstonePower(net.minecraft.block.BlockState state) |
int |
getComparatorOutput(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.item.ItemStack |
getPickStack(net.minecraft.world.BlockView view,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.Direction side,
net.minecraft.block.BlockState state) |
int |
getWeakRedstonePower(net.minecraft.block.BlockState blockState,
net.minecraft.world.BlockView world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.Direction side) |
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 |
onStateReplaced(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
boolean isMoved) |
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) |
net.minecraft.block.BlockState |
updateBlockState(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, 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, getAmbientOcclusionLightLevel, getCollisionShape, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getOutlineShape, getPistonBehavior, getRayTraceShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVisualShape, hasBlockEntity, hasSidedTransparency, isSideInvisible, mirror, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onSyncedBlockEvent, prepare, randomTick, rotate, scheduledTickpublic CasingBlock(net.minecraft.block.AbstractBlock.Settings builder)
protected void appendProperties(net.minecraft.state.StateManager.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
appendProperties in class net.minecraft.block.Blockpublic net.minecraft.block.BlockState updateBlockState(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
@Environment(value=CLIENT)
public net.minecraft.item.ItemStack getPickStack(net.minecraft.world.BlockView view,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.Direction side,
net.minecraft.block.BlockState state)
public net.minecraft.block.entity.BlockEntity createBlockEntity(net.minecraft.world.BlockView view)
createBlockEntity in interface net.minecraft.block.BlockEntityProviderpublic static boolean activate(net.minecraft.item.ItemUsageContext context)
public 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.AbstractBlockpublic void onStateReplaced(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
boolean isMoved)
onStateReplaced in class net.minecraft.block.AbstractBlockpublic boolean hasComparatorOutput(net.minecraft.block.BlockState state)
hasComparatorOutput in class net.minecraft.block.AbstractBlockpublic int getComparatorOutput(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
getComparatorOutput in class net.minecraft.block.AbstractBlockpublic int getWeakRedstonePower(net.minecraft.block.BlockState blockState,
net.minecraft.world.BlockView world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.Direction side)
getWeakRedstonePower in class net.minecraft.block.AbstractBlockpublic boolean emitsRedstonePower(net.minecraft.block.BlockState state)
emitsRedstonePower in class net.minecraft.block.AbstractBlockpublic 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.AbstractBlock