Class BlockCircleComponent
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
at.petrak.hexcasting.api.block.circle.BlockCircleComponent
- All Implemented Interfaces:
ICircleComponent,net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike
- Direct Known Subclasses:
BlockAbstractImpetus,BlockBooleanDirectrix,BlockEmptyDirectrix,BlockEmptyImpetus,BlockRedstoneDirectrix,BlockSlate
public abstract class BlockCircleComponent
extends net.minecraft.world.level.block.Block
implements ICircleComponent
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
net.minecraft.world.level.block.Block.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.state.BlockBehaviour.BlockStateBase, net.minecraft.world.level.block.state.BlockBehaviour.OffsetFunction, net.minecraft.world.level.block.state.BlockBehaviour.OffsetType, net.minecraft.world.level.block.state.BlockBehaviour.Properties, net.minecraft.world.level.block.state.BlockBehaviour.StateArgumentPredicate<A extends Object>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicateNested classes/interfaces inherited from interface at.petrak.hexcasting.api.casting.circles.ICircleComponent
ICircleComponent.ControlFlow -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.level.block.state.properties.BooleanPropertyFields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionBlockCircleComponent(net.minecraft.world.level.block.state.BlockBehaviour.Properties p_49795_) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> pBuilder) net.minecraft.world.level.block.state.BlockStateendEnergized(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState bs, net.minecraft.world.level.Level world) End theICircleComponentat the given position glowing.intgetAnalogOutputSignal(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos) booleanhasAnalogOutputSignal(net.minecraft.world.level.block.state.BlockState pState) booleanisEnergized(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState bs, net.minecraft.world.level.Level world) Returns whether theICircleComponentat the given position is energized.net.minecraft.core.DirectionnormalDir(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState bs, net.minecraft.world.level.Level world) Which direction points "up" or "out" for this block? This is used forICircleComponent.canEnterFromDirection(Direction, BlockPos, BlockState, ServerLevel)as well as particles.abstract net.minecraft.core.DirectionnormalDir(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState bs, net.minecraft.world.level.Level world, int recursionLeft) static net.minecraft.core.DirectionnormalDirOfOther(net.minecraft.core.BlockPos other, net.minecraft.world.level.Level world, int recursionLeft) abstract floatparticleHeight(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState bs, net.minecraft.world.level.Level world) How many blocks in thenormalDir(BlockPos, BlockState, Level)from the center particles should be spawned instatic net.minecraft.world.level.block.state.BlockStateplaceStateDirAndSneak(net.minecraft.world.level.block.state.BlockState stock, net.minecraft.world.item.context.BlockPlaceContext ctx) net.minecraft.world.level.block.state.BlockStatestartEnergized(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState bs, net.minecraft.world.level.Level world) Start theICircleComponentat the given position glowing.Methods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, getStateForPlacement, handlePrecipitation, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getShape, getSignal, getVisualShape, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onPlace, onProjectileHit, onRemove, randomTick, requiredFeatures, rotate, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, updateShape, use, useShapeForLightOcclusionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface at.petrak.hexcasting.api.casting.circles.ICircleComponent
acceptControlFlow, canEnterFromDirection, exitPositionFromDirection, fakeThrowMishap, possibleExitDirections
-
Field Details
-
ENERGIZED
public static final net.minecraft.world.level.block.state.properties.BooleanProperty ENERGIZED
-
-
Constructor Details
-
BlockCircleComponent
public BlockCircleComponent(net.minecraft.world.level.block.state.BlockBehaviour.Properties p_49795_)
-
-
Method Details
-
startEnergized
public net.minecraft.world.level.block.state.BlockState startEnergized(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState bs, net.minecraft.world.level.Level world) Description copied from interface:ICircleComponentStart theICircleComponentat the given position glowing. Returns the new state of the given block. // TODO: determine if this should just be inICircleComponent.acceptControlFlow(CastingImage, CircleCastEnv, Direction, BlockPos, BlockState, ServerLevel).- Specified by:
startEnergizedin interfaceICircleComponent
-
isEnergized
public boolean isEnergized(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState bs, net.minecraft.world.level.Level world) Description copied from interface:ICircleComponentReturns whether theICircleComponentat the given position is energized.- Specified by:
isEnergizedin interfaceICircleComponent
-
endEnergized
public net.minecraft.world.level.block.state.BlockState endEnergized(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState bs, net.minecraft.world.level.Level world) Description copied from interface:ICircleComponentEnd theICircleComponentat the given position glowing. Returns the new state of the given block.- Specified by:
endEnergizedin interfaceICircleComponent
-
normalDir
public net.minecraft.core.Direction normalDir(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState bs, net.minecraft.world.level.Level world) Which direction points "up" or "out" for this block? This is used forICircleComponent.canEnterFromDirection(Direction, BlockPos, BlockState, ServerLevel)as well as particles. -
normalDir
public abstract net.minecraft.core.Direction normalDir(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState bs, net.minecraft.world.level.Level world, int recursionLeft) -
normalDirOfOther
public static net.minecraft.core.Direction normalDirOfOther(net.minecraft.core.BlockPos other, net.minecraft.world.level.Level world, int recursionLeft) -
particleHeight
public abstract float particleHeight(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState bs, net.minecraft.world.level.Level world) How many blocks in thenormalDir(BlockPos, BlockState, Level)from the center particles should be spawned in -
createBlockStateDefinition
protected void createBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> pBuilder) - Overrides:
createBlockStateDefinitionin classnet.minecraft.world.level.block.Block
-
hasAnalogOutputSignal
public boolean hasAnalogOutputSignal(net.minecraft.world.level.block.state.BlockState pState) - Overrides:
hasAnalogOutputSignalin classnet.minecraft.world.level.block.state.BlockBehaviour
-
getAnalogOutputSignal
public int getAnalogOutputSignal(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos) - Overrides:
getAnalogOutputSignalin classnet.minecraft.world.level.block.state.BlockBehaviour
-
placeStateDirAndSneak
public static net.minecraft.world.level.block.state.BlockState placeStateDirAndSneak(net.minecraft.world.level.block.state.BlockState stock, net.minecraft.world.item.context.BlockPlaceContext ctx)
-