Package net.rotgruengelb.quirl.lib.block
Class CustomPathBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.rotgruengelb.quirl.lib.block.CustomPathBlock
- All Implemented Interfaces:
net.minecraft.item.ItemConvertible,net.minecraft.resource.featuretoggle.ToggleableFeature
public class CustomPathBlock
extends net.minecraft.block.Block
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
net.minecraft.block.Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
net.minecraft.block.AbstractBlock.AbstractBlockState, net.minecraft.block.AbstractBlock.ContextPredicate, net.minecraft.block.AbstractBlock.Offsetter, net.minecraft.block.AbstractBlock.OffsetType, net.minecraft.block.AbstractBlock.Settings, net.minecraft.block.AbstractBlock.TypedContextPredicate<A extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final net.minecraft.util.shape.VoxelShapeFields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
ConstructorsConstructorDescriptionCustomPathBlock(net.minecraft.block.AbstractBlock.Settings settings, net.minecraft.block.Block baseBlock) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPathfindThrough(net.minecraft.block.BlockState state, net.minecraft.world.BlockView world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.ai.pathing.NavigationType type) booleancanPlaceAt(net.minecraft.block.BlockState state, net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos) net.minecraft.block.Blocknet.minecraft.util.shape.VoxelShapegetOutlineShape(net.minecraft.block.BlockState state, net.minecraft.world.BlockView world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.ShapeContext context) net.minecraft.block.BlockStategetPlacementState(net.minecraft.item.ItemPlacementContext ctx) net.minecraft.block.BlockStategetStateForNeighborUpdate(net.minecraft.block.BlockState state, net.minecraft.util.math.Direction direction, net.minecraft.block.BlockState neighborState, net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.BlockPos neighborPos) booleanhasSidedTransparency(net.minecraft.block.BlockState state) voidscheduledTick(net.minecraft.block.BlockState state, net.minecraft.server.world.ServerWorld world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.random.Random random) static voidsetToBaseBlock(@Nullable net.minecraft.entity.Entity entity, net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos) Methods inherited from class net.minecraft.block.Block
afterBreak, appendProperties, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTransparent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSidesShape, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
SHAPE
protected static final net.minecraft.util.shape.VoxelShape SHAPE
-
-
Constructor Details
-
CustomPathBlock
public CustomPathBlock(net.minecraft.block.AbstractBlock.Settings settings, net.minecraft.block.Block baseBlock)
-
-
Method Details
-
setToBaseBlock
public static void setToBaseBlock(@Nullable @Nullable net.minecraft.entity.Entity entity, net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos) -
hasSidedTransparency
public boolean hasSidedTransparency(net.minecraft.block.BlockState state) - Overrides:
hasSidedTransparencyin classnet.minecraft.block.AbstractBlock
-
getBaseBlock
public net.minecraft.block.Block getBaseBlock() -
getPlacementState
public net.minecraft.block.BlockState getPlacementState(net.minecraft.item.ItemPlacementContext ctx) - Overrides:
getPlacementStatein classnet.minecraft.block.Block
-
getStateForNeighborUpdate
public net.minecraft.block.BlockState getStateForNeighborUpdate(net.minecraft.block.BlockState state, net.minecraft.util.math.Direction direction, net.minecraft.block.BlockState neighborState, net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.BlockPos neighborPos) - Overrides:
getStateForNeighborUpdatein classnet.minecraft.block.AbstractBlock
-
scheduledTick
public void scheduledTick(net.minecraft.block.BlockState state, net.minecraft.server.world.ServerWorld world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.random.Random random) - Overrides:
scheduledTickin classnet.minecraft.block.AbstractBlock
-
canPlaceAt
public boolean canPlaceAt(net.minecraft.block.BlockState state, net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos) - Overrides:
canPlaceAtin classnet.minecraft.block.AbstractBlock
-
getOutlineShape
public net.minecraft.util.shape.VoxelShape getOutlineShape(net.minecraft.block.BlockState state, net.minecraft.world.BlockView world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.ShapeContext context) - Overrides:
getOutlineShapein classnet.minecraft.block.AbstractBlock
-