public class BeltTunnelBlock extends net.minecraft.block.Block implements ITE<BeltTunnelTileEntity>, IWrenchable
| Modifier and Type | Class and Description |
|---|---|
static class |
BeltTunnelBlock.Shape |
net.minecraft.block.Block.RenderSideCacheKeynet.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| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.state.Property<net.minecraft.util.Direction.Axis> |
HORIZONTAL_AXIS |
static net.minecraft.state.Property<BeltTunnelBlock.Shape> |
SHAPE |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition| Constructor and Description |
|---|
BeltTunnelBlock(net.minecraft.block.AbstractBlock.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canHaveWindow(net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction.Axis axis) |
boolean |
canSurvive(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader worldIn,
net.minecraft.util.math.BlockPos pos) |
protected void |
createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder) |
net.minecraft.tileentity.TileEntity |
createTileEntity(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world) |
net.minecraft.util.math.shapes.VoxelShape |
getShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context) |
net.minecraft.block.BlockState |
getStateForPlacement(net.minecraft.item.BlockItemUseContext context) |
java.lang.Class<BeltTunnelTileEntity> |
getTileEntityClass() |
boolean |
hasTileEntity(net.minecraft.block.BlockState state) |
static boolean |
hasWindow(net.minecraft.block.BlockState state) |
static boolean |
isJunction(net.minecraft.block.BlockState state) |
static boolean |
isStraight(net.minecraft.block.BlockState state) |
boolean |
isValidPositionForPlacement(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader worldIn,
net.minecraft.util.math.BlockPos pos) |
void |
neighborChanged(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block blockIn,
net.minecraft.util.math.BlockPos fromPos,
boolean isMoving) |
void |
onPlace(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState p_220082_4_,
boolean p_220082_5_) |
net.minecraft.util.ActionResultType |
onWrenched(net.minecraft.block.BlockState state,
net.minecraft.item.ItemUseContext context) |
net.minecraft.block.BlockState |
rotate(net.minecraft.block.BlockState state,
net.minecraft.util.Rotation rotation) |
net.minecraft.block.BlockState |
updateShape(net.minecraft.block.BlockState state,
net.minecraft.util.Direction facing,
net.minecraft.block.BlockState facingState,
net.minecraft.world.IWorld worldIn,
net.minecraft.util.math.BlockPos currentPos,
net.minecraft.util.math.BlockPos facingPos) |
void |
updateTunnel(net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos pos) |
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, 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, wasExplodedattack, canBeReplaced, canBeReplaced, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, isSignalSource, mirror, onProjectileHit, onRemove, randomTick, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusiongetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTileEntity, getTileEntityOptional, onTileEntityUse, withTileEntityDogetRotatedBlockState, onSneakWrenched, playRemoveSound, playRotateSound, updateAfterWrenchedaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic static final net.minecraft.state.Property<BeltTunnelBlock.Shape> SHAPE
public static final net.minecraft.state.Property<net.minecraft.util.Direction.Axis> HORIZONTAL_AXIS
public BeltTunnelBlock(net.minecraft.block.AbstractBlock.Properties properties)
public boolean hasTileEntity(net.minecraft.block.BlockState state)
hasTileEntity in interface net.minecraftforge.common.extensions.IForgeBlockpublic net.minecraft.util.math.shapes.VoxelShape getShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context)
getShape in class net.minecraft.block.AbstractBlockpublic net.minecraft.tileentity.TileEntity createTileEntity(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world)
createTileEntity in interface net.minecraftforge.common.extensions.IForgeBlockpublic boolean canSurvive(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader worldIn,
net.minecraft.util.math.BlockPos pos)
canSurvive in class net.minecraft.block.AbstractBlockpublic boolean isValidPositionForPlacement(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader worldIn,
net.minecraft.util.math.BlockPos pos)
public static boolean hasWindow(net.minecraft.block.BlockState state)
public static boolean isStraight(net.minecraft.block.BlockState state)
public static boolean isJunction(net.minecraft.block.BlockState state)
public net.minecraft.block.BlockState getStateForPlacement(net.minecraft.item.BlockItemUseContext context)
getStateForPlacement in class net.minecraft.block.Blockpublic void onPlace(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState p_220082_4_,
boolean p_220082_5_)
onPlace in class net.minecraft.block.AbstractBlockpublic net.minecraft.block.BlockState updateShape(net.minecraft.block.BlockState state,
net.minecraft.util.Direction facing,
net.minecraft.block.BlockState facingState,
net.minecraft.world.IWorld worldIn,
net.minecraft.util.math.BlockPos currentPos,
net.minecraft.util.math.BlockPos facingPos)
updateShape in class net.minecraft.block.AbstractBlockpublic void updateTunnel(net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos pos)
protected boolean canHaveWindow(net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction.Axis axis)
public net.minecraft.util.ActionResultType onWrenched(net.minecraft.block.BlockState state,
net.minecraft.item.ItemUseContext context)
onWrenched in interface IWrenchablepublic net.minecraft.block.BlockState rotate(net.minecraft.block.BlockState state,
net.minecraft.util.Rotation rotation)
rotate in class net.minecraft.block.AbstractBlockpublic void neighborChanged(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block blockIn,
net.minecraft.util.math.BlockPos fromPos,
boolean isMoving)
neighborChanged in class net.minecraft.block.AbstractBlockprotected void createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
createBlockStateDefinition in class net.minecraft.block.Blockpublic java.lang.Class<BeltTunnelTileEntity> getTileEntityClass()
getTileEntityClass in interface ITE<BeltTunnelTileEntity>