Package net.frozenblock.wilderwild.block
Class GeyserBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseEntityBlock
net.frozenblock.wilderwild.block.GeyserBlock
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.block.EntityBlock,net.minecraft.world.level.ItemLike
public class GeyserBlock
extends net.minecraft.world.level.block.BaseEntityBlock
-
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>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatstatic final floatstatic final net.minecraft.world.level.block.state.properties.DirectionPropertystatic final net.minecraft.world.level.block.state.properties.EnumProperty<GeyserStage> static final net.minecraft.world.level.block.state.properties.EnumProperty<GeyserType> static final net.minecraft.world.level.block.state.properties.BooleanPropertystatic 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
ConstructorsConstructorDescriptionGeyserBlock(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.Properties settings) -
Method Summary
Modifier and TypeMethodDescriptionvoidanimateTick(@NotNull net.minecraft.world.level.block.state.BlockState blockState, @NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos blockPos, @NotNull net.minecraft.util.RandomSource random) protected voidcreateBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) intgetAnalogOutputSignal(@NotNull net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) static GeyserTypegetGeyserTypeForPos(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.Direction direction, @NotNull net.minecraft.core.BlockPos pos) static GeyserTypegetGeyserTypeForPos(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.core.BlockPos pos) static @NotNull net.minecraft.world.phys.Vec3getParticlePos(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, net.minecraft.util.RandomSource random) static @NotNull net.minecraft.world.phys.Vec3getParticlePosWithoutRandom(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, net.minecraft.util.RandomSource random) static @NotNull net.minecraft.world.phys.Vec3getParticleVelocity(@NotNull net.minecraft.core.Direction direction, @NotNull net.minecraft.util.RandomSource random, double min, double max) @NotNull net.minecraft.world.level.block.RenderShapegetRenderShape(@NotNull net.minecraft.world.level.block.state.BlockState blockState) net.minecraft.world.level.block.state.BlockStategetStateForPlacement(@NotNull net.minecraft.world.item.context.BlockPlaceContext context) <T extends net.minecraft.world.level.block.entity.BlockEntity>
@Nullable net.minecraft.world.level.block.entity.BlockEntityTicker<T> getTicker(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.block.entity.BlockEntityType<T> type) static @NotNull net.minecraft.world.phys.Vec3getVelocityFromDistance(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, @NotNull net.minecraft.world.phys.Vec3 vec3, @NotNull net.minecraft.util.RandomSource random, double max) booleanhasAnalogOutputSignal(net.minecraft.world.level.block.state.BlockState state) static booleanisActive(GeyserType geyserType) voidneighborChanged(net.minecraft.world.level.block.state.BlockState blockState, @NotNull net.minecraft.world.level.Level level, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.Block block, net.minecraft.core.BlockPos blockPos2, boolean movedByPiston) @Nullable net.minecraft.world.level.block.entity.BlockEntitynewBlockEntity(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state) voidonRemove(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState newState, boolean movedByPiston) static voidspawnBaseGeyserParticles(net.minecraft.core.BlockPos blockPos, net.minecraft.core.Direction direction, net.minecraft.util.RandomSource random) voidtick(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.util.RandomSource random) @NotNull net.minecraft.world.level.block.state.BlockStateupdateShape(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.core.Direction direction, @NotNull net.minecraft.world.level.block.state.BlockState neighborState, @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos currentPos, @NotNull net.minecraft.core.BlockPos neighborPos) Methods inherited from class net.minecraft.world.level.block.BaseEntityBlock
createTickerHelper, getMenuProvider, triggerEventMethods inherited from class net.minecraft.world.level.block.Block
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, 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, getOcclusionShape, getSeed, getShadeBrightness, getShape, getSignal, getVisualShape, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isSignalSource, mirror, onPlace, onProjectileHit, randomTick, requiredFeatures, rotate, skipRendering, spawnAfterBreak, updateIndirectNeighbourShapes, use, useShapeForLightOcclusionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.block.EntityBlock
getListenerMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
-
Field Details
-
BOIL_SOUND_CHANCE_NATURAL
public static final float BOIL_SOUND_CHANCE_NATURAL- See Also:
-
BOIL_SOUND_CHANCE
public static final float BOIL_SOUND_CHANCE- See Also:
-
GEYSER_TYPE
public static final net.minecraft.world.level.block.state.properties.EnumProperty<GeyserType> GEYSER_TYPE -
GEYSER_STAGE
public static final net.minecraft.world.level.block.state.properties.EnumProperty<GeyserStage> GEYSER_STAGE -
FACING
public static final net.minecraft.world.level.block.state.properties.DirectionProperty FACING -
NATURAL
public static final net.minecraft.world.level.block.state.properties.BooleanProperty NATURAL -
POWERED
public static final net.minecraft.world.level.block.state.properties.BooleanProperty POWERED
-
-
Constructor Details
-
GeyserBlock
public GeyserBlock(@NotNull @NotNull net.minecraft.world.level.block.state.BlockBehaviour.Properties settings)
-
-
Method Details
-
newBlockEntity
@Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity newBlockEntity(@NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state) -
createBlockStateDefinition
protected void createBlockStateDefinition(@NotNull net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) - Overrides:
createBlockStateDefinitionin classnet.minecraft.world.level.block.Block
-
hasAnalogOutputSignal
public boolean hasAnalogOutputSignal(net.minecraft.world.level.block.state.BlockState state) - Overrides:
hasAnalogOutputSignalin classnet.minecraft.world.level.block.state.BlockBehaviour
-
getAnalogOutputSignal
public int getAnalogOutputSignal(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) - Overrides:
getAnalogOutputSignalin classnet.minecraft.world.level.block.state.BlockBehaviour
-
getStateForPlacement
public net.minecraft.world.level.block.state.BlockState getStateForPlacement(@NotNull @NotNull net.minecraft.world.item.context.BlockPlaceContext context) - Overrides:
getStateForPlacementin classnet.minecraft.world.level.block.Block
-
neighborChanged
public void neighborChanged(net.minecraft.world.level.block.state.BlockState blockState, @NotNull @NotNull net.minecraft.world.level.Level level, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.Block block, net.minecraft.core.BlockPos blockPos2, boolean movedByPiston) - Overrides:
neighborChangedin classnet.minecraft.world.level.block.state.BlockBehaviour
-
updateShape
@NotNull public @NotNull net.minecraft.world.level.block.state.BlockState updateShape(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.core.Direction direction, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState neighborState, @NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos currentPos, @NotNull @NotNull net.minecraft.core.BlockPos neighborPos) - Overrides:
updateShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
onRemove
public void onRemove(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState newState, boolean movedByPiston) - Overrides:
onRemovein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getGeyserTypeForPos
public static GeyserType getGeyserTypeForPos(@NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.core.BlockPos pos) -
getGeyserTypeForPos
public static GeyserType getGeyserTypeForPos(@NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.Direction direction, @NotNull @NotNull net.minecraft.core.BlockPos pos) -
tick
public void tick(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.util.RandomSource random) - Overrides:
tickin classnet.minecraft.world.level.block.state.BlockBehaviour
-
animateTick
public void animateTick(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState, @NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos blockPos, @NotNull @NotNull net.minecraft.util.RandomSource random) - Overrides:
animateTickin classnet.minecraft.world.level.block.Block
-
getRenderShape
@NotNull public @NotNull net.minecraft.world.level.block.RenderShape getRenderShape(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState) - Overrides:
getRenderShapein classnet.minecraft.world.level.block.BaseEntityBlock
-
getTicker
@Nullable public <T extends net.minecraft.world.level.block.entity.BlockEntity> @Nullable net.minecraft.world.level.block.entity.BlockEntityTicker<T> getTicker(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.block.entity.BlockEntityType<T> type) -
isActive
-
getParticleVelocity
@NotNull public static @NotNull net.minecraft.world.phys.Vec3 getParticleVelocity(@NotNull @NotNull net.minecraft.core.Direction direction, @NotNull @NotNull net.minecraft.util.RandomSource random, double min, double max) -
getVelocityFromDistance
@NotNull public static @NotNull net.minecraft.world.phys.Vec3 getVelocityFromDistance(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, @NotNull @NotNull net.minecraft.world.phys.Vec3 vec3, @NotNull @NotNull net.minecraft.util.RandomSource random, double max) -
getParticlePosWithoutRandom
@NotNull public static @NotNull net.minecraft.world.phys.Vec3 getParticlePosWithoutRandom(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, net.minecraft.util.RandomSource random) -
getParticlePos
@NotNull public static @NotNull net.minecraft.world.phys.Vec3 getParticlePos(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, net.minecraft.util.RandomSource random) -
spawnBaseGeyserParticles
@Environment(CLIENT) public static void spawnBaseGeyserParticles(net.minecraft.core.BlockPos blockPos, net.minecraft.core.Direction direction, net.minecraft.util.RandomSource random)
-