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.BlockStatePairKey

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    static final float
     
    static final float
     
    static final net.minecraft.world.level.block.state.properties.DirectionProperty
     
    static 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.BooleanProperty
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     

    Fields 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_DROPS

    Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour

    drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    GeyserBlock(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.Properties settings)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    animateTick(@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 void
    createBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.state.BlockState> builder)
     
    int
    getAnalogOutputSignal(@NotNull net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
     
    static GeyserType
    getGeyserTypeForPos(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.Direction direction, @NotNull net.minecraft.core.BlockPos pos)
     
    static GeyserType
    getGeyserTypeForPos(@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.Vec3
    getParticlePos(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, net.minecraft.util.RandomSource random)
     
    static @NotNull net.minecraft.world.phys.Vec3
    getParticlePosWithoutRandom(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, net.minecraft.util.RandomSource random)
     
    static @NotNull net.minecraft.world.phys.Vec3
    getParticleVelocity(@NotNull net.minecraft.core.Direction direction, @NotNull net.minecraft.util.RandomSource random, double min, double max)
     
    @NotNull net.minecraft.world.level.block.RenderShape
    getRenderShape(@NotNull net.minecraft.world.level.block.state.BlockState blockState)
     
    net.minecraft.world.level.block.state.BlockState
    getStateForPlacement(@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.Vec3
    getVelocityFromDistance(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)
     
    boolean
    hasAnalogOutputSignal(net.minecraft.world.level.block.state.BlockState state)
     
    static boolean
    isActive(GeyserType geyserType)
     
    void
    neighborChanged(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.BlockEntity
    newBlockEntity(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state)
     
    void
    onRemove(@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 void
    spawnBaseGeyserParticles(net.minecraft.core.BlockPos blockPos, net.minecraft.core.Direction direction, net.minecraft.util.RandomSource random)
     
    void
    tick(@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.BlockState
    updateShape(@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, triggerEvent

    Methods 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, withPropertiesOf

    Methods 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, useShapeForLightOcclusion

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.level.block.EntityBlock

    getListener

    Methods 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:
      createBlockStateDefinition in class net.minecraft.world.level.block.Block
    • hasAnalogOutputSignal

      public boolean hasAnalogOutputSignal(net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      hasAnalogOutputSignal in class net.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:
      getAnalogOutputSignal in class net.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:
      getStateForPlacement in class net.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:
      neighborChanged in class net.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:
      updateShape in class net.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:
      onRemove in class net.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:
      tick in class net.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:
      animateTick in class net.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:
      getRenderShape in class net.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

      public static boolean isActive(GeyserType geyserType)
    • 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)