Package net.frozenblock.wilderwild.block
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 ClassesNested 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 intstatic final doublestatic final doublestatic final doublestatic final net.minecraft.world.level.block.state.properties.EnumProperty<BubbleDirection> static final floatstatic final intstatic final doublestatic final net.minecraft.world.phys.Vec3static final doublestatic final floatstatic final intfinal booleanstatic final intstatic final net.minecraft.world.level.block.state.properties.BooleanPropertystatic final intFields 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
ConstructorsConstructorDescriptionMesogleaBlock(boolean pearlescent, @NotNull net.minecraft.world.level.block.state.BlockBehaviour.Properties properties) -
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 randomSource) static booleancanColumnSurvive(@NotNull net.minecraft.world.level.LevelReader level, @NotNull net.minecraft.core.BlockPos pos) protected voidcreateBlockStateDefinition(@NotNull net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) voidentityInside(@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.VoxelShapegetCollisionShape(@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.FluidStategetFluidState(@NotNull net.minecraft.world.level.block.state.BlockState blockState) intgetLightBlock(@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.RenderShapegetRenderShape(@NotNull net.minecraft.world.level.block.state.BlockState state) @Nullable net.minecraft.world.level.block.state.BlockStategetStateForPlacement(@NotNull net.minecraft.world.item.context.BlockPlaceContext blockPlaceContext) static booleanhasBubbleColumn(net.minecraft.world.level.block.state.BlockState blockState) static booleanisColumnSupportingMesoglea(net.minecraft.world.level.block.state.BlockState blockState) static booleanisDraggingDown(net.minecraft.world.level.block.state.BlockState blockState) static booleanisMesoglea(@NotNull net.minecraft.world.level.block.state.BlockState blockState) voidneighborChanged(@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) booleanskipRendering(@NotNull net.minecraft.world.level.block.state.BlockState blockState, @NotNull net.minecraft.world.level.block.state.BlockState blockState2, @NotNull net.minecraft.core.Direction direction) 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) static voidupdateColumn(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) static voidupdateColumn(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.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 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, withPropertiesOfMethods 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, 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 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:
entityInsidein classnet.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:
getCollisionShapein 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 randomSource) - Overrides:
animateTickin classnet.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:
getLightBlockin classnet.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:
getStateForPlacementin classnet.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:
updateShapein classnet.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:
neighborChangedin classnet.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:
tickin classnet.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:
getFluidStatein classnet.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:
createBlockStateDefinitionin classnet.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:
skipRenderingin classnet.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:
getRenderShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-