Class BarricadeBlock

java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BarrierBlock
net.modgarden.barricade.block.BarricadeBlock
All Implemented Interfaces:
net.fabricmc.fabric.api.block.v1.FabricBlock, 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

public class BarricadeBlock extends net.minecraft.world.level.block.BarrierBlock implements net.minecraft.world.level.block.EntityBlock
  • Nested Class Summary

    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

    Nested classes/interfaces inherited from interface net.fabricmc.fabric.api.block.v1.FabricBlock

    net.fabricmc.fabric.api.block.v1.FabricBlock.FabricProperties
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<net.minecraft.world.level.block.BarrierBlock>
     
    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
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     

    Fields inherited from class net.minecraft.world.level.block.BarrierBlock

    WATERLOGGED

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

    Modifier and Type
    Method
    Description
    @NotNull com.mojang.serialization.MapCodec<net.minecraft.world.level.block.BarrierBlock>
     
    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)
     
    directions(net.minecraft.world.level.block.state.BlockState state)
     
    static @NonNull BarricadeData
    getBarricadeData(@NonNull net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level)
     
    static @NonNull net.minecraft.core.Holder<BarricadeData>
    getBarricadeDataHolder(@NonNull net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level)
     
    static @NonNull net.minecraft.core.Holder<BarricadeData>
    getBarricadeDataHolder(@NonNull net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level, boolean fromBlockEntity)
     
    @NotNull net.minecraft.world.item.ItemStack
    getCloneItemStack(net.minecraft.world.level.LevelReader levelReader, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state, boolean includeData)
     
    @NotNull net.minecraft.world.phys.shapes.VoxelShape
    getCollisionShape(@NotNull net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter blockGetter, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.phys.shapes.CollisionContext context)
     
    protected @NotNull net.minecraft.world.phys.shapes.VoxelShape
    getShape(@NotNull net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter blockGetter, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.phys.shapes.CollisionContext context)
     
    net.minecraft.world.level.block.state.BlockState
    getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context)
     
    @Nullable net.minecraft.world.level.block.entity.BlockEntity
    newBlockEntity(@NonNull net.minecraft.core.BlockPos worldPosition, @NonNull net.minecraft.world.level.block.state.BlockState blockState)
     
    static lgbt.greenhouse.silicate.api.context.GameContext
    newContext(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.entity.Entity entity, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos)
     
    static void
    setBarricadeData(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Holder<BarricadeData> barricadeDataHolder)
     

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

    canPlaceLiquid, getFluidState, getRenderShape, getShadeBrightness, pickupBlock, propagatesSkylightDown, updateShape

    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, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityMovementAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf

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

    affectNeighborsAfterRemoval, attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getDescriptionId, getDestroyProgress, getDirectSignal, getDrops, getEntityInsideCollisionShape, getInteractionShape, getLightDampening, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getSeed, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isCollisionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, mirror, neighborChanged, onExplosionHit, onPlace, onProjectileHit, properties, propertiesCodec, randomTick, requiredFeatures, rotate, shouldChangedStateKeepBlockEntity, simpleCodec, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, useItemOn, useShapeForLightOcclusion, useWithoutItem

    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, getTicker

    Methods inherited from interface net.fabricmc.fabric.api.block.v1.FabricBlock

    getAppearance

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled

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

    getPickupSound, placeLiquid
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<net.minecraft.world.level.block.BarrierBlock> 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
  • Constructor Details

    • BarricadeBlock

      public BarricadeBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties)
  • Method Details

    • getBarricadeData

      public static @NonNull BarricadeData getBarricadeData(@NonNull net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level)
    • getBarricadeDataHolder

      public static @NonNull net.minecraft.core.Holder<BarricadeData> getBarricadeDataHolder(@NonNull net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level)
    • getBarricadeDataHolder

      public static @NonNull net.minecraft.core.Holder<BarricadeData> getBarricadeDataHolder(@NonNull net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level, boolean fromBlockEntity)
    • setBarricadeData

      public static void setBarricadeData(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Holder<BarricadeData> barricadeDataHolder)
    • newContext

      public static lgbt.greenhouse.silicate.api.context.GameContext newContext(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.entity.Entity entity, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos)
    • getStateForPlacement

      public net.minecraft.world.level.block.state.BlockState getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context)
      Overrides:
      getStateForPlacement in class net.minecraft.world.level.block.BarrierBlock
    • directions

      public BlockedDirections directions(net.minecraft.world.level.block.state.BlockState state)
    • codec

      @NotNull public @NotNull com.mojang.serialization.MapCodec<net.minecraft.world.level.block.BarrierBlock> codec()
      Overrides:
      codec in class net.minecraft.world.level.block.BarrierBlock
    • getCollisionShape

      @NotNull public @NotNull net.minecraft.world.phys.shapes.VoxelShape getCollisionShape(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter blockGetter, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.phys.shapes.CollisionContext context)
      Overrides:
      getCollisionShape in class net.minecraft.world.level.block.state.BlockBehaviour
    • getShape

      @NotNull protected @NotNull net.minecraft.world.phys.shapes.VoxelShape getShape(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter blockGetter, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.phys.shapes.CollisionContext context)
      Overrides:
      getShape in class net.minecraft.world.level.block.state.BlockBehaviour
    • getCloneItemStack

      @NotNull public @NotNull net.minecraft.world.item.ItemStack getCloneItemStack(net.minecraft.world.level.LevelReader levelReader, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, boolean includeData)
      Overrides:
      getCloneItemStack 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.BarrierBlock
    • newBlockEntity

      public @Nullable net.minecraft.world.level.block.entity.BlockEntity newBlockEntity(@NonNull net.minecraft.core.BlockPos worldPosition, @NonNull net.minecraft.world.level.block.state.BlockState blockState)
      Specified by:
      newBlockEntity in interface net.minecraft.world.level.block.EntityBlock