public class BeltBlock extends HorizontalKineticBlock implements ITE<BeltTileEntity>, ISpecialBlockItemRequirement
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.Propertiesnet.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<V extends net.minecraftforge.registries.IForgeRegistryEntry<V>>IRotate.SpeedLevel, IRotate.StressImpact| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.state.BooleanProperty |
CASING |
static net.minecraft.state.Property<BeltPart> |
PART |
static net.minecraft.state.Property<BeltSlope> |
SLOPE |
HORIZONTAL_FACINGcolorBLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition| Constructor and Description |
|---|
BeltBlock(net.minecraft.block.AbstractBlock.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDestroyEffects(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.client.particle.ParticleManager manager) |
protected boolean |
areStatesKineticallyEquivalent(net.minecraft.block.BlockState oldState,
net.minecraft.block.BlockState newState) |
static boolean |
canAccessFromSide(net.minecraft.util.Direction facing,
net.minecraft.block.BlockState belt) |
static boolean |
canTransportObjects(net.minecraft.block.BlockState state) |
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) |
void |
entityInside(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.Entity entityIn) |
void |
fillItemCategory(net.minecraft.item.ItemGroup p_149666_1_,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> p_149666_2_) |
net.minecraft.pathfinding.PathNodeType |
getAiPathNodeType(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.MobEntity entity) |
static java.util.List<net.minecraft.util.math.BlockPos> |
getBeltChain(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos controllerPos) |
net.minecraft.util.math.shapes.VoxelShape |
getCollisionShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context) |
java.util.List<net.minecraft.item.ItemStack> |
getDrops(net.minecraft.block.BlockState state,
net.minecraft.loot.LootContext.Builder builder) |
net.minecraft.item.ItemStack |
getPickBlock(net.minecraft.block.BlockState state,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player) |
net.minecraft.block.BlockRenderType |
getRenderShape(net.minecraft.block.BlockState state) |
ItemRequirement |
getRequiredItems(net.minecraft.block.BlockState state,
net.minecraft.tileentity.TileEntity te) |
net.minecraft.util.Direction.Axis |
getRotationAxis(net.minecraft.block.BlockState state) |
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) |
java.lang.Class<BeltTileEntity> |
getTileEntityClass() |
boolean |
hasShaftTowards(net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.util.Direction face) |
boolean |
hasTileEntity(net.minecraft.block.BlockState state) |
static void |
initBelt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
boolean |
isFlammable(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction face) |
boolean |
isPathfindable(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.pathfinding.PathType type) |
static net.minecraft.util.math.BlockPos |
nextSegmentPosition(net.minecraft.block.BlockState state,
net.minecraft.util.math.BlockPos pos,
boolean forward) |
void |
onRemove(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
boolean isMoving) |
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 rot) |
void |
spawnAfterBreak(net.minecraft.block.BlockState state,
net.minecraft.world.server.ServerWorld worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.item.ItemStack p_220062_4_) |
void |
updateEntityAfterFallOn(net.minecraft.world.IBlockReader worldIn,
net.minecraft.entity.Entity entityIn) |
net.minecraft.block.BlockState |
updateShape(net.minecraft.block.BlockState state,
net.minecraft.util.Direction side,
net.minecraft.block.BlockState p_196271_3_,
net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.BlockPos p_196271_6_) |
net.minecraft.util.ActionResultType |
use(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 handIn,
net.minecraft.util.math.BlockRayTraceResult hit) |
getPreferredHorizontalFacing, getStateForPlacement, mirrorcanHarvestBlock, getHarvestTool, getParticleInitialRadius, getParticleTargetRadius, isToolEffective, onPlace, setPlacedBy, updateIndirectNeighbourShapesanimateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, shouldRenderFace, stateById, stepOn, toString, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExplodedattack, canBeReplaced, canBeReplaced, canSurvive, defaultMaterialColor, getAnalogOutputSignal, getBlockSupportShape, getDestroyProgress, getDirectSignal, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isSignalSource, neighborChanged, onProjectileHit, randomTick, skipRendering, tick, triggerEvent, useShapeForLightOcclusiongetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTileEntity, getTileEntityOptional, onTileEntityUse, withTileEntityDogetMinimumRequiredSpeedLevel, hideStressImpact, showCapacityWithAnnotationgetRotatedBlockState, onSneakWrenched, playRemoveSound, playRotateSound, updateAfterWrenchedaddHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canStickTo, catchFire, collisionExtendsVertically, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic static final net.minecraft.state.Property<BeltSlope> SLOPE
public static final net.minecraft.state.Property<BeltPart> PART
public static final net.minecraft.state.BooleanProperty CASING
public BeltBlock(net.minecraft.block.AbstractBlock.Properties properties)
public void fillItemCategory(net.minecraft.item.ItemGroup p_149666_1_,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> p_149666_2_)
fillItemCategory in class net.minecraft.block.Blockprotected boolean areStatesKineticallyEquivalent(net.minecraft.block.BlockState oldState,
net.minecraft.block.BlockState newState)
areStatesKineticallyEquivalent in class KineticBlockpublic boolean hasShaftTowards(net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.util.Direction face)
hasShaftTowards in interface IRotatehasShaftTowards in class KineticBlockpublic net.minecraft.util.Direction.Axis getRotationAxis(net.minecraft.block.BlockState state)
getRotationAxis in interface IRotatepublic net.minecraft.item.ItemStack getPickBlock(net.minecraft.block.BlockState state,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player)
getPickBlock in interface net.minecraftforge.common.extensions.IForgeBlockpublic java.util.List<net.minecraft.item.ItemStack> getDrops(net.minecraft.block.BlockState state,
net.minecraft.loot.LootContext.Builder builder)
getDrops in class net.minecraft.block.AbstractBlockpublic void spawnAfterBreak(net.minecraft.block.BlockState state,
net.minecraft.world.server.ServerWorld worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.item.ItemStack p_220062_4_)
spawnAfterBreak in class net.minecraft.block.AbstractBlockpublic boolean isFlammable(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction face)
isFlammable in interface net.minecraftforge.common.extensions.IForgeBlockpublic void updateEntityAfterFallOn(net.minecraft.world.IBlockReader worldIn,
net.minecraft.entity.Entity entityIn)
updateEntityAfterFallOn in class net.minecraft.block.Blockpublic void entityInside(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.Entity entityIn)
entityInside in class net.minecraft.block.AbstractBlockpublic static boolean canTransportObjects(net.minecraft.block.BlockState state)
public net.minecraft.util.ActionResultType use(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 handIn,
net.minecraft.util.math.BlockRayTraceResult hit)
use in class net.minecraft.block.AbstractBlockpublic net.minecraft.util.ActionResultType onWrenched(net.minecraft.block.BlockState state,
net.minecraft.item.ItemUseContext context)
onWrenched in interface IWrenchableprotected void createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
createBlockStateDefinition in class HorizontalKineticBlockpublic boolean hasTileEntity(net.minecraft.block.BlockState state)
hasTileEntity in interface net.minecraftforge.common.extensions.IForgeBlockhasTileEntity in class KineticBlockpublic net.minecraft.pathfinding.PathNodeType getAiPathNodeType(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.MobEntity entity)
getAiPathNodeType in interface net.minecraftforge.common.extensions.IForgeBlockpublic boolean addDestroyEffects(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.client.particle.ParticleManager manager)
addDestroyEffects 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.util.math.shapes.VoxelShape getCollisionShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context)
getCollisionShape 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.IForgeBlockcreateTileEntity in class KineticBlockpublic net.minecraft.block.BlockRenderType getRenderShape(net.minecraft.block.BlockState state)
getRenderShape in class net.minecraft.block.AbstractBlockpublic static void initBelt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
public void onRemove(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
boolean isMoving)
onRemove in class net.minecraft.block.AbstractBlockpublic net.minecraft.block.BlockState updateShape(net.minecraft.block.BlockState state,
net.minecraft.util.Direction side,
net.minecraft.block.BlockState p_196271_3_,
net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.BlockPos p_196271_6_)
updateShape in class net.minecraft.block.AbstractBlockpublic static java.util.List<net.minecraft.util.math.BlockPos> getBeltChain(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos controllerPos)
public static net.minecraft.util.math.BlockPos nextSegmentPosition(net.minecraft.block.BlockState state,
net.minecraft.util.math.BlockPos pos,
boolean forward)
public static boolean canAccessFromSide(net.minecraft.util.Direction facing,
net.minecraft.block.BlockState belt)
public java.lang.Class<BeltTileEntity> getTileEntityClass()
getTileEntityClass in interface ITE<BeltTileEntity>public ItemRequirement getRequiredItems(net.minecraft.block.BlockState state, net.minecraft.tileentity.TileEntity te)
getRequiredItems in interface ISpecialBlockItemRequirementpublic net.minecraft.block.BlockState rotate(net.minecraft.block.BlockState state,
net.minecraft.util.Rotation rot)
rotate in class HorizontalKineticBlockpublic 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.AbstractBlock