@ParametersAreNonnullByDefault @MethodsReturnNonnullByDefault public class ControllerRailBlock extends net.minecraft.block.AbstractRailBlock implements IWrenchable
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.BooleanProperty |
BACKWARDS |
static net.minecraft.state.IntegerProperty |
POWER |
static net.minecraft.state.EnumProperty<net.minecraft.state.properties.RailShape> |
SHAPE |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition| Constructor and Description |
|---|
ControllerRailBlock(net.minecraft.block.AbstractBlock.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> p_206840_1_) |
static net.minecraft.util.math.vector.Vector3i |
getAccelerationVector(net.minecraft.block.BlockState state) |
int |
getAnalogOutputSignal(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.state.Property<net.minecraft.state.properties.RailShape> |
getShapeProperty() |
net.minecraft.block.BlockState |
getStateForPlacement(net.minecraft.item.BlockItemUseContext p_196258_1_) |
boolean |
hasAnalogOutputSignal(net.minecraft.block.BlockState state) |
static boolean |
isReversedSlope(net.minecraft.block.BlockState state) |
static boolean |
isStateBackwards(net.minecraft.block.BlockState state) |
net.minecraft.block.BlockState |
mirror(net.minecraft.block.BlockState state,
net.minecraft.util.Mirror mirror) |
void |
onMinecartPass(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.item.minecart.AbstractMinecartEntity cart) |
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) |
protected net.minecraft.block.BlockState |
updateDir(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
boolean p_208489_4_) |
protected void |
updateState(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block block) |
canSurvive, getPistonPushReaction, getRailDirection, getShape, isFlexibleRail, isRail, isRail, isStraight, neighborChanged, onPlace, onRemove, updateStateanimateTick, 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, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, isAir, isEntityBlock, isPathfindable, isSignalSource, onProjectileHit, randomTick, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, updateShape, use, useShapeForLightOcclusiongetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRotatedBlockState, onSneakWrenched, playRemoveSound, playRotateSound, updateAfterWrenchedcanMakeSlopes, getAbstractBlock, getRailMaxSpeedaddDestroyEffects, 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, shouldDisplayFluidOverlaypublic static final net.minecraft.state.EnumProperty<net.minecraft.state.properties.RailShape> SHAPE
public static final net.minecraft.state.BooleanProperty BACKWARDS
public static final net.minecraft.state.IntegerProperty POWER
public ControllerRailBlock(net.minecraft.block.AbstractBlock.Properties properties)
public static net.minecraft.util.math.vector.Vector3i getAccelerationVector(net.minecraft.block.BlockState state)
protected net.minecraft.block.BlockState updateDir(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
boolean p_208489_4_)
updateDir in class net.minecraft.block.AbstractRailBlockpublic net.minecraft.block.BlockState getStateForPlacement(net.minecraft.item.BlockItemUseContext p_196258_1_)
getStateForPlacement in class net.minecraft.block.AbstractRailBlockpublic net.minecraft.state.Property<net.minecraft.state.properties.RailShape> getShapeProperty()
getShapeProperty in class net.minecraft.block.AbstractRailBlockprotected void createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> p_206840_1_)
createBlockStateDefinition in class net.minecraft.block.Blockpublic void onMinecartPass(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.item.minecart.AbstractMinecartEntity cart)
onMinecartPass in interface net.minecraftforge.common.extensions.IAbstractRailBlockprotected void updateState(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block block)
updateState in class net.minecraft.block.AbstractRailBlockpublic net.minecraft.util.ActionResultType onWrenched(net.minecraft.block.BlockState state,
net.minecraft.item.ItemUseContext context)
onWrenched in interface IWrenchablepublic boolean hasAnalogOutputSignal(net.minecraft.block.BlockState state)
hasAnalogOutputSignal in class net.minecraft.block.AbstractBlockpublic int getAnalogOutputSignal(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
getAnalogOutputSignal in class net.minecraft.block.AbstractBlockpublic net.minecraft.block.BlockState rotate(net.minecraft.block.BlockState state,
net.minecraft.util.Rotation rotation)
rotate in class net.minecraft.block.AbstractBlockpublic net.minecraft.block.BlockState mirror(net.minecraft.block.BlockState state,
net.minecraft.util.Mirror mirror)
mirror in class net.minecraft.block.AbstractBlockpublic static boolean isStateBackwards(net.minecraft.block.BlockState state)
public static boolean isReversedSlope(net.minecraft.block.BlockState state)