Class SellingBinBlock

java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.nikdo53.tinymultiblocklib.block.AbstractMultiBlock
com.wdiscute.sellingbin.bin.SellingBinBlock
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.block.EntityBlock, net.minecraft.world.level.ItemLike, net.minecraft.world.WorldlyContainerHolder, net.minecraftforge.common.extensions.IForgeBlock, net.nikdo53.neobackports.extensions.IBlockBehaviourExtension, net.nikdo53.tinymultiblocklib.block.IExpandingMultiblock, net.nikdo53.tinymultiblocklib.block.IMBStateSharer, net.nikdo53.tinymultiblocklib.block.IMovableMultiblock, net.nikdo53.tinymultiblocklib.block.IMultiBlock, net.nikdo53.tinymultiblocklib.block.IPreviewableMultiblock

public class SellingBinBlock extends net.nikdo53.tinymultiblocklib.block.AbstractMultiBlock implements net.nikdo53.tinymultiblocklib.block.IPreviewableMultiblock, net.minecraft.world.WorldlyContainerHolder
  • 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 extends Object>, 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.DirectionProperty
     

    Fields inherited from class net.nikdo53.tinymultiblocklib.block.AbstractMultiBlock

    CENTER

    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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    net.minecraft.world.WorldlyContainer
    getContainer(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.LevelAccessor levelAccessor, net.minecraft.core.BlockPos blockPos)
     
    net.minecraft.world.level.block.state.BlockState
    getDefaultStateForPreviews(net.minecraft.core.Direction direction)
     
    @Nullable net.minecraft.world.level.block.state.properties.DirectionProperty
     
    net.minecraft.world.level.block.RenderShape
    getMultiblockRenderShape(net.minecraft.world.level.block.state.BlockState state, boolean c)
     
    float
    getShadeBrightness(net.minecraft.world.level.block.state.BlockState p_308911_, net.minecraft.world.level.BlockGetter p_308952_, net.minecraft.core.BlockPos p_308918_)
     
    @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)
     
    boolean
     
    List<net.minecraft.core.BlockPos>
    makeFullBlockShape(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos center, net.minecraft.world.level.block.state.BlockState blockState, @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, @Nullable net.minecraft.core.Direction direction)
     
    @Nullable net.minecraft.world.level.block.entity.BlockEntity
    newBlockEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
     
    boolean
    propagatesSkylightDown(net.minecraft.world.level.block.state.BlockState p_309084_, net.minecraft.world.level.BlockGetter p_309133_, net.minecraft.core.BlockPos p_309097_)
     
    net.nikdo53.neobackports.utils.ItemInteractionResult
    useItemOn(net.minecraft.world.item.ItemStack handStack, 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)
     
    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.nikdo53.tinymultiblocklib.block.AbstractMultiBlock

    addToValidBEBlocks, canSurvive, getRenderShape, getSharedStatePropertiesBuilder, onPlace, playerWillDestroy, updateShape

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

    animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, 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, canBeReplaced, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getSeed, getShape, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onProjectileHit, onRemove, randomTick, requiredFeatures, rotate, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusion

    Methods inherited from class java.lang.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.nikdo53.tinymultiblocklib.block.IExpandingMultiblock

    cancelChangeShape, canChangeShape, changeShape, hasShapeChanged, onPlaceHelper, postChangeShape, tryChangeShape, updateShapeHelper

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlock

    addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHiding

    Methods inherited from interface net.nikdo53.tinymultiblocklib.block.IMBStateSharer

    createSharedBlockStates, getSharedStateProperties, getSharedStatePropertiesBuilder, shareBlockStates

    Methods inherited from interface net.nikdo53.tinymultiblocklib.block.IMovableMultiblock

    gatherStates, moveMultiblock

    Methods inherited from interface net.nikdo53.tinymultiblocklib.block.IMultiBlock

    allBlocksPresent, canPlace, canReplaceBlock, canSurviveHelper, destroy, entityUnobstructed, extraSurviveRequirements, getDirection, getFullBlockShape, getFullBlockShapeNoCache, getIsolatedBlocks, getStateForEachBlock, getStateForPlacementHelper, getStateForPlacementHelper, place, prepareForPlace, preventCreativeDrops, voxelShapeHelper, voxelShapeHelper, voxelShapeHelper

    Methods inherited from interface net.nikdo53.tinymultiblocklib.block.IPreviewableMultiblock

    getBlockEntityForPreviews, shouldPreview, skipJsonRendering
  • Field Details

    • FACING

      public static final net.minecraft.world.level.block.state.properties.DirectionProperty FACING
  • Constructor Details

    • SellingBinBlock

      public SellingBinBlock()
  • Method Details

    • 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
    • getShadeBrightness

      public 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
    • propagatesSkylightDown

      public boolean propagatesSkylightDown(net.minecraft.world.level.block.state.BlockState p_309084_, net.minecraft.world.level.BlockGetter p_309133_, net.minecraft.core.BlockPos p_309097_)
      Overrides:
      propagatesSkylightDown in class net.minecraft.world.level.block.Block
    • makeFullBlockShape

      public List<net.minecraft.core.BlockPos> makeFullBlockShape(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos center, net.minecraft.world.level.block.state.BlockState blockState, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, @Nullable @Nullable net.minecraft.core.Direction direction)
      Specified by:
      makeFullBlockShape in interface net.nikdo53.tinymultiblocklib.block.IMultiBlock
    • getStateForPlacement

      @Nullable public @Nullable net.minecraft.world.level.block.state.BlockState getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context)
      Overrides:
      getStateForPlacement in class net.nikdo53.tinymultiblocklib.block.AbstractMultiBlock
    • getDefaultStateForPreviews

      public net.minecraft.world.level.block.state.BlockState getDefaultStateForPreviews(net.minecraft.core.Direction direction)
      Specified by:
      getDefaultStateForPreviews in interface net.nikdo53.tinymultiblocklib.block.IPreviewableMultiblock
    • getMultiblockRenderShape

      public net.minecraft.world.level.block.RenderShape getMultiblockRenderShape(net.minecraft.world.level.block.state.BlockState state, boolean c)
      Specified by:
      getMultiblockRenderShape in class net.nikdo53.tinymultiblocklib.block.AbstractMultiBlock
    • getDirectionProperty

      @Nullable public @Nullable net.minecraft.world.level.block.state.properties.DirectionProperty getDirectionProperty()
      Specified by:
      getDirectionProperty in interface net.nikdo53.tinymultiblocklib.block.IMultiBlock
    • 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.nikdo53.tinymultiblocklib.block.AbstractMultiBlock
    • useItemOn

      public net.nikdo53.neobackports.utils.ItemInteractionResult useItemOn(net.minecraft.world.item.ItemStack handStack, 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)
      Specified by:
      useItemOn in interface net.nikdo53.neobackports.extensions.IBlockBehaviourExtension
    • useWithoutItem

      public 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)
      Specified by:
      useWithoutItem in interface net.nikdo53.neobackports.extensions.IBlockBehaviourExtension
    • 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
      Overrides:
      newBlockEntity in class net.nikdo53.tinymultiblocklib.block.AbstractMultiBlock
    • hasCustomBE

      public boolean hasCustomBE()
      Overrides:
      hasCustomBE in class net.nikdo53.tinymultiblocklib.block.AbstractMultiBlock
    • getContainer

      public net.minecraft.world.WorldlyContainer getContainer(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.LevelAccessor levelAccessor, net.minecraft.core.BlockPos blockPos)
      Specified by:
      getContainer in interface net.minecraft.world.WorldlyContainerHolder