Class FrostBlock

java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.MultifaceBlock
com.lightning.northstar.block.simple.FrostBlock
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.neoforged.neoforge.common.extensions.IBlockExtension

public class FrostBlock extends net.minecraft.world.level.block.MultifaceBlock
  • 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
    protected static final float
     
    static final com.mojang.serialization.MapCodec<FrostBlock>
     
    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 Map<net.minecraft.core.Direction,net.minecraft.world.level.block.state.properties.BooleanProperty>
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    final net.minecraft.world.level.block.MultifaceSpreader
     
    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.MultifaceBlock

    DIRECTIONS

    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
    FrostBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties pProperties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.block.MultifaceBlock>
     
    protected void
    createBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.state.BlockState> pBuilder)
     
    static net.minecraft.world.level.block.state.properties.BooleanProperty
    getPropertyForFace(net.minecraft.core.Direction pFace)
     
    net.minecraft.world.phys.shapes.VoxelShape
    getShape(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.BlockGetter pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.phys.shapes.CollisionContext pContext)
     
    net.minecraft.world.level.block.MultifaceSpreader
     
    static net.minecraft.world.level.block.state.BlockState
    getStateForGeneration(net.minecraft.world.level.WorldGenLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource rando)
     
    @Nullable net.minecraft.world.level.block.state.BlockState
    getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext pContext)
     
    static net.minecraft.world.level.block.state.BlockState
    giveStateValues(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pPos, net.minecraft.util.RandomSource rando)
     
    static boolean
    isAcceptableNeighbour(net.minecraft.world.level.BlockGetter pBlockReader, net.minecraft.core.BlockPos pNeighborPos, net.minecraft.core.Direction pAttachedFace)
     
    void
    randomTick(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource rando)
     
    net.minecraft.world.level.block.state.BlockState
    updateShape(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.core.Direction pFacing, net.minecraft.world.level.block.state.BlockState pFacingState, net.minecraft.world.level.LevelAccessor pLevel, net.minecraft.core.BlockPos pCurrentPos, net.minecraft.core.BlockPos pFacingPos)
    Update the provided state given the provided neighbor direction and neighbor state, returning a new state.

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

    availableFaces, canAttachTo, canBeReplaced, canSurvive, getFaceProperty, getStateForPlacement, hasAnyFace, hasFace, isFaceSupported, isValidStateForPlacement, mirror, pack, rotate, unpack

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

    animateTick, 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, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, 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, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, neighborChanged, onExplosionHit, onPlace, onProjectileHit, onRemove, propagatesSkylightDown, properties, propertiesCodec, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, useItemOn, useShapeForLightOcclusion, useWithoutItem

    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.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, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, shouldHideAdjacentFluidFace, supportsExternalFaceHiding
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<FrostBlock> CODEC
    • UP

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty UP
    • DOWN

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty DOWN
    • NORTH

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty NORTH
    • EAST

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty EAST
    • SOUTH

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty SOUTH
    • WEST

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty WEST
    • PROPERTY_BY_DIRECTION

      public static final Map<net.minecraft.core.Direction,net.minecraft.world.level.block.state.properties.BooleanProperty> PROPERTY_BY_DIRECTION
    • AABB_OFFSET

      protected static final float AABB_OFFSET
      See Also:
    • spreader

      public final net.minecraft.world.level.block.MultifaceSpreader spreader
  • Constructor Details

    • FrostBlock

      public FrostBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties pProperties)
  • Method Details

    • codec

      protected com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.block.MultifaceBlock> codec()
      Specified by:
      codec in class net.minecraft.world.level.block.MultifaceBlock
    • getShape

      public net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.BlockGetter pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.phys.shapes.CollisionContext pContext)
      Overrides:
      getShape in class net.minecraft.world.level.block.MultifaceBlock
    • randomTick

      public void randomTick(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource rando)
      Overrides:
      randomTick in class net.minecraft.world.level.block.state.BlockBehaviour
    • isAcceptableNeighbour

      public static boolean isAcceptableNeighbour(net.minecraft.world.level.BlockGetter pBlockReader, net.minecraft.core.BlockPos pNeighborPos, net.minecraft.core.Direction pAttachedFace)
    • giveStateValues

      public static net.minecraft.world.level.block.state.BlockState giveStateValues(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pPos, net.minecraft.util.RandomSource rando)
    • getStateForPlacement

      @Nullable public @Nullable net.minecraft.world.level.block.state.BlockState getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext pContext)
      Overrides:
      getStateForPlacement in class net.minecraft.world.level.block.MultifaceBlock
    • getStateForGeneration

      public static net.minecraft.world.level.block.state.BlockState getStateForGeneration(net.minecraft.world.level.WorldGenLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource rando)
    • updateShape

      public net.minecraft.world.level.block.state.BlockState updateShape(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.core.Direction pFacing, net.minecraft.world.level.block.state.BlockState pFacingState, net.minecraft.world.level.LevelAccessor pLevel, net.minecraft.core.BlockPos pCurrentPos, net.minecraft.core.BlockPos pFacingPos)
      Update the provided state given the provided neighbor direction and neighbor state, returning a new state. For example, fences make their connections to the passed in state if possible, and wet concrete powder immediately returns its solidified counterpart. Note that this method should ideally consider only the specific direction passed in.
      Overrides:
      updateShape in class net.minecraft.world.level.block.MultifaceBlock
    • 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> pBuilder)
      Overrides:
      createBlockStateDefinition in class net.minecraft.world.level.block.MultifaceBlock
    • getPropertyForFace

      public static net.minecraft.world.level.block.state.properties.BooleanProperty getPropertyForFace(net.minecraft.core.Direction pFace)
    • getSpreader

      public net.minecraft.world.level.block.MultifaceSpreader getSpreader()
      Specified by:
      getSpreader in class net.minecraft.world.level.block.MultifaceBlock