Class AquariumBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseEntityBlock
com.wdiscute.starcatcher.blocks.aquarium.AquariumBlock
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.block.BucketPickup, net.minecraft.world.level.block.EntityBlock, net.minecraft.world.level.block.LiquidBlockContainer, net.minecraft.world.level.block.SimpleWaterloggedBlock, net.minecraft.world.level.ItemLike, net.neoforged.neoforge.common.extensions.IBlockExtension, net.neoforged.neoforge.common.extensions.IBucketPickupExtension
public class AquariumBlock
extends net.minecraft.world.level.block.BaseEntityBlock
implements net.minecraft.world.level.block.SimpleWaterloggedBlock
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enumstatic enumstatic enumNested classes/interfaces inherited from class net.minecraft.world.level.block.Block
net.minecraft.world.level.block.Block.UpdateFlagsNested 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.PostProcess, 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 net.minecraft.world.level.block.state.properties.BooleanPropertystatic final net.minecraft.world.level.block.state.properties.EnumProperty<AquariumBlock.Decoration> static final net.minecraft.world.level.block.state.properties.BooleanPropertystatic final net.minecraft.world.level.block.state.properties.EnumProperty<AquariumBlock.Ground> static final net.minecraft.world.level.block.state.properties.BooleanPropertystatic final net.minecraft.world.level.block.state.properties.BooleanPropertystatic final net.minecraft.world.level.block.state.properties.BooleanPropertystatic 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, CODEC, 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_SKIP_ALL_SIDEEFFECTS, UPDATE_SKIP_BLOCK_ENTITY_SIDEEFFECTS, UPDATE_SKIP_ON_PLACE, UPDATE_SKIP_SHAPE_UPDATE_ON_WIRE, UPDATE_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
descriptionId, 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
ConstructorsConstructorDescriptionAquariumBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaffectNeighborsAfterRemoval(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, boolean movedByPiston) protected booleancanBeReplaced(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.material.Fluid fluid) booleancanPlaceLiquid(@Nullable net.minecraft.world.entity.LivingEntity user, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.material.Fluid type) protected com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.block.BaseEntityBlock> codec()protected voidcreateBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) protected net.minecraft.world.phys.shapes.VoxelShapegetCollisionShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.CollisionContext context) protected net.minecraft.world.level.material.FluidStategetFluidState(net.minecraft.world.level.block.state.BlockState state) protected net.minecraft.world.level.block.RenderShapegetRenderShape(net.minecraft.world.level.block.state.BlockState state) protected floatgetShadeBrightness(net.minecraft.world.level.block.state.BlockState p_308911_, net.minecraft.world.level.BlockGetter p_308952_, net.minecraft.core.BlockPos p_308918_) protected net.minecraft.world.phys.shapes.VoxelShapegetShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.CollisionContext context) @Nullable net.minecraft.world.level.block.state.BlockStategetStateForPlacement(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(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntityType<T> blockEntityType) protected net.minecraft.world.phys.shapes.VoxelShapegetVisualShape(net.minecraft.world.level.block.state.BlockState p_309057_, net.minecraft.world.level.BlockGetter p_308936_, net.minecraft.core.BlockPos p_308956_, net.minecraft.world.phys.shapes.CollisionContext p_309006_) booleanprotected voidneighborChanged(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block block, @Nullable net.minecraft.world.level.redstone.Orientation orientation, boolean movedByPiston) @Nullable net.minecraft.world.level.block.entity.BlockEntitynewBlockEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) booleanonDestroyedByPlayer(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack toolStack, boolean willHarvest, net.minecraft.world.level.material.FluidState fluid) net.minecraft.world.item.ItemStackpickupBlock(@Nullable net.minecraft.world.entity.LivingEntity user, net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) protected booleanpropagatesSkylightDown(net.minecraft.world.level.block.state.BlockState state) booleanshouldDisplayFluidOverlay(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndLightGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.FluidState fluidState) protected net.minecraft.world.level.block.state.BlockStateupdateShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader level, net.minecraft.world.level.ScheduledTickAccess ticks, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction directionToNeighbour, net.minecraft.core.BlockPos neighbourPos, net.minecraft.world.level.block.state.BlockState neighbourState, net.minecraft.util.RandomSource random) protected net.minecraft.world.InteractionResultuseItemOn(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult hitResult) protected booleanuseShapeForLightOcclusion(net.minecraft.world.level.block.state.BlockState state) protected net.minecraft.world.InteractionResultuseWithoutItem(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.BlockHitResult hitResult) Methods inherited from class net.minecraft.world.level.block.BaseEntityBlock
createTickerHelper, getMenuProvider, triggerEventMethods inherited from class net.minecraft.world.level.block.Block
animateTick, asBlock, asItem, box, boxes, boxZ, boxZ, boxZ, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, column, column, cube, cube, defaultBlockState, destroy, dropFromBlockInteractLootTable, dropFromExplosion, dropFromLootTable, dropResources, dropResources, dropResources, fallOn, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getShapeForEachState, getSpeedFactor, getStateDefinition, handlePrecipitation, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityMovementAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCloneItemStack, getDescriptionId, getDestroyProgress, getDirectSignal, getDrops, getEntityInsideCollisionShape, getInteractionShape, getLightDampening, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getSeed, getSignal, getSoundType, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, mirror, onExplosionHit, onPlace, onProjectileHit, properties, propertiesCodec, randomTick, requiredFeatures, rotate, shouldChangedStateKeepBlockEntity, simpleCodec, skipRendering, spawnAfterBreak, tick, updateIndirectNeighbourShapesMethods inherited from class 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
isEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockExtension
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, canSustainPlant, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getBubbleColumnDirection, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasDynamicLightEmission, hidesNeighborFace, ignitedByLava, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, playFallSound, playStepSound, rotate, setBedOccupied, shouldCheckWeakPower, shouldHideAdjacentFluidFace, supportsExternalFaceHidingMethods inherited from interface net.neoforged.neoforge.common.extensions.IBucketPickupExtension
getPickupSoundMethods inherited from interface net.minecraft.world.level.block.SimpleWaterloggedBlock
getPickupSound, placeLiquid
-
Field Details
-
WATERLOGGED
public static final net.minecraft.world.level.block.state.properties.BooleanProperty WATERLOGGED -
EAST
public static final net.minecraft.world.level.block.state.properties.BooleanProperty EAST -
WEST
public static final net.minecraft.world.level.block.state.properties.BooleanProperty WEST -
BOTTOM
public static final net.minecraft.world.level.block.state.properties.BooleanProperty BOTTOM -
TOP
public static final net.minecraft.world.level.block.state.properties.BooleanProperty TOP -
NORTH
public static final net.minecraft.world.level.block.state.properties.BooleanProperty NORTH -
SOUTH
public static final net.minecraft.world.level.block.state.properties.BooleanProperty SOUTH -
DECORATION
public static final net.minecraft.world.level.block.state.properties.EnumProperty<AquariumBlock.Decoration> DECORATION -
GROUND
public static final net.minecraft.world.level.block.state.properties.EnumProperty<AquariumBlock.Ground> GROUND
-
-
Constructor Details
-
AquariumBlock
public AquariumBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties)
-
-
Method Details
-
getShadeBrightness
protected float getShadeBrightness(net.minecraft.world.level.block.state.BlockState p_308911_, net.minecraft.world.level.BlockGetter p_308952_, net.minecraft.core.BlockPos p_308918_) - Overrides:
getShadeBrightnessin classnet.minecraft.world.level.block.state.BlockBehaviour
-
getVisualShape
protected net.minecraft.world.phys.shapes.VoxelShape getVisualShape(net.minecraft.world.level.block.state.BlockState p_309057_, net.minecraft.world.level.BlockGetter p_308936_, net.minecraft.core.BlockPos p_308956_, net.minecraft.world.phys.shapes.CollisionContext p_309006_) - Overrides:
getVisualShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
affectNeighborsAfterRemoval
protected void affectNeighborsAfterRemoval(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, boolean movedByPiston) - Overrides:
affectNeighborsAfterRemovalin classnet.minecraft.world.level.block.state.BlockBehaviour
-
pickupBlock
public net.minecraft.world.item.ItemStack pickupBlock(@Nullable net.minecraft.world.entity.LivingEntity user, net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) - Specified by:
pickupBlockin interfacenet.minecraft.world.level.block.BucketPickup- Specified by:
pickupBlockin interfacenet.minecraft.world.level.block.SimpleWaterloggedBlock
-
canBeReplaced
protected boolean canBeReplaced(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.material.Fluid fluid) - Overrides:
canBeReplacedin classnet.minecraft.world.level.block.state.BlockBehaviour
-
hasDynamicShape
public boolean hasDynamicShape()- Overrides:
hasDynamicShapein classnet.minecraft.world.level.block.Block
-
onDestroyedByPlayer
public boolean onDestroyedByPlayer(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack toolStack, boolean willHarvest, net.minecraft.world.level.material.FluidState fluid) - Specified by:
onDestroyedByPlayerin interfacenet.neoforged.neoforge.common.extensions.IBlockExtension
-
getCollisionShape
protected net.minecraft.world.phys.shapes.VoxelShape getCollisionShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.CollisionContext context) - Overrides:
getCollisionShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getShape
protected net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.CollisionContext context) - Overrides:
getShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
shouldDisplayFluidOverlay
public boolean shouldDisplayFluidOverlay(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndLightGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.FluidState fluidState) - Specified by:
shouldDisplayFluidOverlayin interfacenet.neoforged.neoforge.common.extensions.IBlockExtension
-
useShapeForLightOcclusion
protected boolean useShapeForLightOcclusion(net.minecraft.world.level.block.state.BlockState state) - Overrides:
useShapeForLightOcclusionin classnet.minecraft.world.level.block.state.BlockBehaviour
-
propagatesSkylightDown
protected boolean propagatesSkylightDown(net.minecraft.world.level.block.state.BlockState state) - Overrides:
propagatesSkylightDownin classnet.minecraft.world.level.block.state.BlockBehaviour
-
useItemOn
protected net.minecraft.world.InteractionResult useItemOn(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult hitResult) - Overrides:
useItemOnin classnet.minecraft.world.level.block.state.BlockBehaviour
-
updateShape
protected net.minecraft.world.level.block.state.BlockState updateShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader level, net.minecraft.world.level.ScheduledTickAccess ticks, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction directionToNeighbour, net.minecraft.core.BlockPos neighbourPos, net.minecraft.world.level.block.state.BlockState neighbourState, net.minecraft.util.RandomSource random) - Overrides:
updateShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getFluidState
protected net.minecraft.world.level.material.FluidState getFluidState(net.minecraft.world.level.block.state.BlockState state) - Overrides:
getFluidStatein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getStateForPlacement
@Nullable public @Nullable net.minecraft.world.level.block.state.BlockState getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context) - Overrides:
getStateForPlacementin classnet.minecraft.world.level.block.Block
-
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> builder) - Overrides:
createBlockStateDefinitionin classnet.minecraft.world.level.block.Block
-
neighborChanged
protected void neighborChanged(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block block, @Nullable net.minecraft.world.level.redstone.Orientation orientation, boolean movedByPiston) - Overrides:
neighborChangedin classnet.minecraft.world.level.block.state.BlockBehaviour
-
canPlaceLiquid
public boolean canPlaceLiquid(@Nullable net.minecraft.world.entity.LivingEntity user, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.material.Fluid type) - Specified by:
canPlaceLiquidin interfacenet.minecraft.world.level.block.LiquidBlockContainer- Specified by:
canPlaceLiquidin interfacenet.minecraft.world.level.block.SimpleWaterloggedBlock
-
useWithoutItem
protected net.minecraft.world.InteractionResult useWithoutItem(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.BlockHitResult hitResult) - Overrides:
useWithoutItemin classnet.minecraft.world.level.block.state.BlockBehaviour
-
getRenderShape
protected net.minecraft.world.level.block.RenderShape getRenderShape(net.minecraft.world.level.block.state.BlockState state) - Overrides:
getRenderShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
codec
protected com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.block.BaseEntityBlock> codec()- Specified by:
codecin classnet.minecraft.world.level.block.BaseEntityBlock
-
newBlockEntity
@Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity newBlockEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) - Specified by:
newBlockEntityin interfacenet.minecraft.world.level.block.EntityBlock
-
getTicker
@Nullable public <T extends net.minecraft.world.level.block.entity.BlockEntity> @Nullable net.minecraft.world.level.block.entity.BlockEntityTicker<T> getTicker(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntityType<T> blockEntityType) - Specified by:
getTickerin interfacenet.minecraft.world.level.block.EntityBlock
-