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 Classes
    Modifier and Type
    Class
    Description
    static interface 
     
    static enum 
     
    static enum 
     
    static enum 
     

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block

    net.minecraft.world.level.block.Block.UpdateFlags

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

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    static final net.minecraft.world.level.block.state.properties.EnumProperty<AquariumBlock.Decoration>
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    static final net.minecraft.world.level.block.state.properties.EnumProperty<AquariumBlock.Ground>
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    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, 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_DROPS

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

    descriptionId, 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
    AquariumBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    affectNeighborsAfterRemoval(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, boolean movedByPiston)
     
    protected boolean
    canBeReplaced(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.material.Fluid fluid)
     
    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)
     
    protected com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.block.BaseEntityBlock>
     
    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)
     
    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)
     
    protected net.minecraft.world.level.material.FluidState
    getFluidState(net.minecraft.world.level.block.state.BlockState state)
     
    protected net.minecraft.world.level.block.RenderShape
    getRenderShape(net.minecraft.world.level.block.state.BlockState state)
     
    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_)
     
    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)
     
    @Nullable net.minecraft.world.level.block.state.BlockState
    getStateForPlacement(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.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_)
     
    boolean
     
    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)
     
    @Nullable net.minecraft.world.level.block.entity.BlockEntity
    newBlockEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
     
    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)
     
    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)
     
    protected boolean
    propagatesSkylightDown(net.minecraft.world.level.block.state.BlockState state)
     
    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)
     
    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)
     
    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)
     
    protected boolean
    useShapeForLightOcclusion(net.minecraft.world.level.block.state.BlockState state)
     
    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)
     

    Methods inherited from class net.minecraft.world.level.block.BaseEntityBlock

    createTickerHelper, getMenuProvider, triggerEvent

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

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

    Methods inherited from class 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

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

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBucketPickupExtension

    getPickupSound

    Methods 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:
      getShadeBrightness in class net.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:
      getVisualShape in class net.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:
      affectNeighborsAfterRemoval in class net.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:
      pickupBlock in interface net.minecraft.world.level.block.BucketPickup
      Specified by:
      pickupBlock in interface net.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:
      canBeReplaced in class net.minecraft.world.level.block.state.BlockBehaviour
    • hasDynamicShape

      public boolean hasDynamicShape()
      Overrides:
      hasDynamicShape in class net.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:
      onDestroyedByPlayer in interface net.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:
      getCollisionShape in class net.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:
      getShape in class net.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:
      shouldDisplayFluidOverlay in interface net.neoforged.neoforge.common.extensions.IBlockExtension
    • useShapeForLightOcclusion

      protected boolean useShapeForLightOcclusion(net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      useShapeForLightOcclusion in class net.minecraft.world.level.block.state.BlockBehaviour
    • propagatesSkylightDown

      protected boolean propagatesSkylightDown(net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      propagatesSkylightDown in class net.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:
      useItemOn in class net.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:
      updateShape in class net.minecraft.world.level.block.state.BlockBehaviour
    • getFluidState

      protected net.minecraft.world.level.material.FluidState getFluidState(net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      getFluidState in class net.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:
      getStateForPlacement in class net.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:
      createBlockStateDefinition in class net.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:
      neighborChanged in class net.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:
      canPlaceLiquid in interface net.minecraft.world.level.block.LiquidBlockContainer
      Specified by:
      canPlaceLiquid in interface net.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:
      useWithoutItem in class net.minecraft.world.level.block.state.BlockBehaviour
    • getRenderShape

      protected net.minecraft.world.level.block.RenderShape getRenderShape(net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      getRenderShape in class net.minecraft.world.level.block.state.BlockBehaviour
    • codec

      protected com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.block.BaseEntityBlock> codec()
      Specified by:
      codec in class net.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:
      newBlockEntity in interface net.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:
      getTicker in interface net.minecraft.world.level.block.EntityBlock