public class RedstoneLinkBlock extends ProperDirectionalBlock implements ITE<RedstoneLinkTileEntity>
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 |
POWERED |
static net.minecraft.state.BooleanProperty |
RECEIVER |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition| Constructor and Description |
|---|
RedstoneLinkBlock(net.minecraft.block.AbstractBlock.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConnectRedstone(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side) |
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) |
int |
getDirectSignal(net.minecraft.block.BlockState blockState,
net.minecraft.world.IBlockReader blockAccess,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side) |
net.minecraft.block.BlockState |
getRotatedBlockState(net.minecraft.block.BlockState originalState,
net.minecraft.util.Direction _targetedFace) |
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) |
int |
getSignal(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader blockAccess,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side) |
net.minecraft.block.BlockState |
getStateForPlacement(net.minecraft.item.BlockItemUseContext context) |
java.lang.Class<RedstoneLinkTileEntity> |
getTileEntityClass() |
boolean |
hasTileEntity(net.minecraft.block.BlockState state) |
boolean |
isPathfindable(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.pathfinding.PathType type) |
boolean |
isSignalSource(net.minecraft.block.BlockState state) |
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 worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState oldState,
boolean isMoving) |
net.minecraft.util.ActionResultType |
onWrenched(net.minecraft.block.BlockState state,
net.minecraft.item.ItemUseContext context) |
void |
tick(net.minecraft.block.BlockState state,
net.minecraft.world.server.ServerWorld worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random r) |
net.minecraft.util.ActionResultType |
toggleMode(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos) |
void |
updateTransmittedSignal(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.util.ActionResultType |
use(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand handIn,
net.minecraft.util.math.BlockRayTraceResult hit) |
mirror, rotateanimateTick, 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, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, onProjectileHit, onRemove, randomTick, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, updateShape, useShapeForLightOcclusiongetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTileEntity, getTileEntityOptional, onTileEntityUse, withTileEntityDoonSneakWrenched, playRemoveSound, playRotateSound, updateAfterWrenchedaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, 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.BooleanProperty POWERED
public static final net.minecraft.state.BooleanProperty RECEIVER
public RedstoneLinkBlock(net.minecraft.block.AbstractBlock.Properties properties)
public 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.AbstractBlockpublic void tick(net.minecraft.block.BlockState state,
net.minecraft.world.server.ServerWorld worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random r)
tick in class net.minecraft.block.AbstractBlockpublic void onPlace(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState oldState,
boolean isMoving)
onPlace in class net.minecraft.block.AbstractBlockpublic void updateTransmittedSignal(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos)
public boolean isSignalSource(net.minecraft.block.BlockState state)
isSignalSource in class net.minecraft.block.AbstractBlockpublic int getDirectSignal(net.minecraft.block.BlockState blockState,
net.minecraft.world.IBlockReader blockAccess,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side)
getDirectSignal in class net.minecraft.block.AbstractBlockpublic int getSignal(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader blockAccess,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side)
getSignal 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 ProperDirectionalBlockpublic boolean hasTileEntity(net.minecraft.block.BlockState state)
hasTileEntity in interface net.minecraftforge.common.extensions.IForgeBlockpublic net.minecraft.tileentity.TileEntity createTileEntity(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world)
createTileEntity in interface net.minecraftforge.common.extensions.IForgeBlockpublic net.minecraft.util.ActionResultType use(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand handIn,
net.minecraft.util.math.BlockRayTraceResult hit)
use in class net.minecraft.block.AbstractBlockpublic net.minecraft.util.ActionResultType toggleMode(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos)
public net.minecraft.util.ActionResultType onWrenched(net.minecraft.block.BlockState state,
net.minecraft.item.ItemUseContext context)
onWrenched in interface IWrenchablepublic net.minecraft.block.BlockState getRotatedBlockState(net.minecraft.block.BlockState originalState,
net.minecraft.util.Direction _targetedFace)
getRotatedBlockState in interface IWrenchablegetRotatedBlockState in class ProperDirectionalBlockpublic boolean canConnectRedstone(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side)
canConnectRedstone 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 net.minecraft.block.BlockState getStateForPlacement(net.minecraft.item.BlockItemUseContext context)
getStateForPlacement in class ProperDirectionalBlockpublic 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 boolean isPathfindable(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.pathfinding.PathType type)
isPathfindable in class net.minecraft.block.AbstractBlockpublic java.lang.Class<RedstoneLinkTileEntity> getTileEntityClass()
getTileEntityClass in interface ITE<RedstoneLinkTileEntity>