Class MesogleaBlock

java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.HalfTransparentBlock
net.frozenblock.wilderwild.block.MesogleaBlock
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.block.BucketPickup, net.minecraft.world.level.block.LiquidBlockContainer, net.minecraft.world.level.block.SimpleWaterloggedBlock, net.minecraft.world.level.ItemLike

public class MesogleaBlock extends net.minecraft.world.level.block.HalfTransparentBlock implements net.minecraft.world.level.block.SimpleWaterloggedBlock
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    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 int
     
    static final double
     
    static final double
     
    static final double
     
    static final net.minecraft.world.level.block.state.properties.EnumProperty<BubbleDirection>
     
    static final float
     
    static final int
     
    static final double
     
    static final net.minecraft.world.phys.Vec3
     
    static final double
     
    static final float
     
    static final int
     
    final boolean
     
    static final int
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    static final int
     

    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
    MesogleaBlock(boolean pearlescent, @NotNull net.minecraft.world.level.block.state.BlockBehaviour.Properties properties)
     
  • 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 randomSource)
     
    static boolean
    canColumnSurvive(@NotNull net.minecraft.world.level.LevelReader level, @NotNull net.minecraft.core.BlockPos pos)
     
    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)
     
    void
    entityInside(@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.entity.Entity entity)
     
    @NotNull net.minecraft.world.phys.shapes.VoxelShape
    getCollisionShape(@NotNull net.minecraft.world.level.block.state.BlockState blockState, @NotNull net.minecraft.world.level.BlockGetter blockGetter, @NotNull net.minecraft.core.BlockPos blockPos, @NotNull net.minecraft.world.phys.shapes.CollisionContext collisionContext)
     
    static Optional<net.minecraft.core.Direction>
    getDragDirection(net.minecraft.world.level.block.state.BlockState blockState)
     
    @NotNull net.minecraft.world.level.material.FluidState
    getFluidState(@NotNull net.minecraft.world.level.block.state.BlockState blockState)
     
    int
    getLightBlock(@NotNull net.minecraft.world.level.block.state.BlockState blockState, @NotNull net.minecraft.world.level.BlockGetter blockGetter, @NotNull net.minecraft.core.BlockPos blockPos)
     
    @NotNull net.minecraft.world.level.block.RenderShape
    getRenderShape(@NotNull net.minecraft.world.level.block.state.BlockState state)
     
    @Nullable net.minecraft.world.level.block.state.BlockState
    getStateForPlacement(@NotNull net.minecraft.world.item.context.BlockPlaceContext blockPlaceContext)
     
    static boolean
    hasBubbleColumn(net.minecraft.world.level.block.state.BlockState blockState)
     
    static boolean
    isColumnSupportingMesoglea(net.minecraft.world.level.block.state.BlockState blockState)
     
    static boolean
    isDraggingDown(net.minecraft.world.level.block.state.BlockState blockState)
     
    static boolean
    isMesoglea(@NotNull net.minecraft.world.level.block.state.BlockState blockState)
     
    void
    neighborChanged(@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.Block neighborBlock, @NotNull net.minecraft.core.BlockPos neighborPos, boolean movedByPiston)
     
    boolean
    skipRendering(@NotNull net.minecraft.world.level.block.state.BlockState blockState, @NotNull net.minecraft.world.level.block.state.BlockState blockState2, @NotNull net.minecraft.core.Direction direction)
     
    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)
     
    static void
    updateColumn(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    static void
    updateColumn(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState mesoglea, net.minecraft.world.level.block.state.BlockState state)
     
    @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 pos, @NotNull net.minecraft.core.BlockPos neighborPos)
     

    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, getAnalogOutputSignal, getBlockSupportShape, getDestroyProgress, getDirectSignal, getDrops, getInteractionShape, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getSeed, getShadeBrightness, getShape, getSignal, getVisualShape, hasAnalogOutputSignal, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isSignalSource, mirror, onPlace, onProjectileHit, onRemove, randomTick, requiredFeatures, rotate, spawnAfterBreak, triggerEvent, 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.flag.FeatureElement

    isEnabled

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

    canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
  • Field Details

    • JELLYFISH_COLLISION_FROM_SIDE

      public static final float JELLYFISH_COLLISION_FROM_SIDE
      See Also:
    • COLLISION_FROM_SIDE

      public static final float COLLISION_FROM_SIDE
      See Also:
    • ITEM_SLOWDOWN

      public static final double ITEM_SLOWDOWN
      See Also:
    • ITEM_VERTICAL_BOOST

      public static final double ITEM_VERTICAL_BOOST
      See Also:
    • ITEM_SLOWDOWN_VEC3

      public static final net.minecraft.world.phys.Vec3 ITEM_SLOWDOWN_VEC3
    • BOAT_MAX_VERTICAL_SPEED

      public static final double BOAT_MAX_VERTICAL_SPEED
      See Also:
    • BOAT_VERTICAL_BOOST

      public static final double BOAT_VERTICAL_BOOST
      See Also:
    • BOAT_VERTICAL_SLOWDOWN_SCALE_WHEN_FALLING

      public static final double BOAT_VERTICAL_SLOWDOWN_SCALE_WHEN_FALLING
      See Also:
    • DRIP_PARTICLE_CHANCE

      public static final int DRIP_PARTICLE_CHANCE
      See Also:
    • WATERLOGGED_LIGHT_BLOCK

      public static final int WATERLOGGED_LIGHT_BLOCK
      See Also:
    • LIGHT_BLOCK

      public static final int LIGHT_BLOCK
      See Also:
    • AMBIENT_WHIRLPOOL_SOUND_CHANCE

      public static final int AMBIENT_WHIRLPOOL_SOUND_CHANCE
      See Also:
    • TICK_DELAY

      public static final int TICK_DELAY
      See Also:
    • WATERLOGGED

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty WATERLOGGED
    • BUBBLE_DIRECTION

      public static final net.minecraft.world.level.block.state.properties.EnumProperty<BubbleDirection> BUBBLE_DIRECTION
    • pearlescent

      public final boolean pearlescent
  • Constructor Details

    • MesogleaBlock

      public MesogleaBlock(boolean pearlescent, @NotNull @NotNull net.minecraft.world.level.block.state.BlockBehaviour.Properties properties)
  • Method Details

    • isMesoglea

      public static boolean isMesoglea(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState)
    • isColumnSupportingMesoglea

      public static boolean isColumnSupportingMesoglea(net.minecraft.world.level.block.state.BlockState blockState)
    • hasBubbleColumn

      public static boolean hasBubbleColumn(net.minecraft.world.level.block.state.BlockState blockState)
    • isDraggingDown

      public static boolean isDraggingDown(net.minecraft.world.level.block.state.BlockState blockState)
    • getDragDirection

      public static Optional<net.minecraft.core.Direction> getDragDirection(net.minecraft.world.level.block.state.BlockState blockState)
    • canColumnSurvive

      public static boolean canColumnSurvive(@NotNull @NotNull net.minecraft.world.level.LevelReader level, @NotNull @NotNull net.minecraft.core.BlockPos pos)
    • updateColumn

      public static void updateColumn(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    • updateColumn

      public static void updateColumn(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState mesoglea, net.minecraft.world.level.block.state.BlockState state)
    • entityInside

      public void entityInside(@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.entity.Entity entity)
      Overrides:
      entityInside in class net.minecraft.world.level.block.state.BlockBehaviour
    • getCollisionShape

      @NotNull public @NotNull net.minecraft.world.phys.shapes.VoxelShape getCollisionShape(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState, @NotNull @NotNull net.minecraft.world.level.BlockGetter blockGetter, @NotNull @NotNull net.minecraft.core.BlockPos blockPos, @NotNull @NotNull net.minecraft.world.phys.shapes.CollisionContext collisionContext)
      Overrides:
      getCollisionShape 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 randomSource)
      Overrides:
      animateTick in class net.minecraft.world.level.block.Block
    • getLightBlock

      public int getLightBlock(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState, @NotNull @NotNull net.minecraft.world.level.BlockGetter blockGetter, @NotNull @NotNull net.minecraft.core.BlockPos blockPos)
      Overrides:
      getLightBlock in class net.minecraft.world.level.block.state.BlockBehaviour
    • getStateForPlacement

      @Nullable public @Nullable net.minecraft.world.level.block.state.BlockState getStateForPlacement(@NotNull @NotNull net.minecraft.world.item.context.BlockPlaceContext blockPlaceContext)
      Overrides:
      getStateForPlacement in class net.minecraft.world.level.block.Block
    • 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 pos, @NotNull @NotNull net.minecraft.core.BlockPos neighborPos)
      Overrides:
      updateShape in class net.minecraft.world.level.block.state.BlockBehaviour
    • neighborChanged

      public void neighborChanged(@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.Block neighborBlock, @NotNull @NotNull net.minecraft.core.BlockPos neighborPos, boolean movedByPiston)
      Overrides:
      neighborChanged in class net.minecraft.world.level.block.state.BlockBehaviour
    • 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
    • getFluidState

      @NotNull public @NotNull net.minecraft.world.level.material.FluidState getFluidState(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState)
      Overrides:
      getFluidState in class net.minecraft.world.level.block.state.BlockBehaviour
    • 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
    • skipRendering

      public boolean skipRendering(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState2, @NotNull @NotNull net.minecraft.core.Direction direction)
      Overrides:
      skipRendering in class net.minecraft.world.level.block.HalfTransparentBlock
    • getRenderShape

      @NotNull public @NotNull net.minecraft.world.level.block.RenderShape getRenderShape(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      getRenderShape in class net.minecraft.world.level.block.state.BlockBehaviour