Package com.wdiscute.sellingbin.bin
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.BlockStatePairKeyNested 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
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.level.block.state.properties.DirectionPropertyFields inherited from class net.nikdo53.tinymultiblocklib.block.AbstractMultiBlock
CENTERFields 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_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateBlockStateDefinition(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.WorldlyContainergetContainer(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.BlockStategetDefaultStateForPreviews(net.minecraft.core.Direction direction) @Nullable net.minecraft.world.level.block.state.properties.DirectionPropertynet.minecraft.world.level.block.RenderShapegetMultiblockRenderShape(net.minecraft.world.level.block.state.BlockState state, boolean c) floatgetShadeBrightness(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.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) booleanList<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.BlockEntitynewBlockEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) booleanpropagatesSkylightDown(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.ItemInteractionResultuseItemOn(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.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.nikdo53.tinymultiblocklib.block.AbstractMultiBlock
addToValidBEBlocks, canSurvive, getRenderShape, getSharedStatePropertiesBuilder, onPlace, playerWillDestroy, updateShapeMethods 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, withPropertiesOfMethods 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, useShapeForLightOcclusionMethods inherited from class java.lang.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.nikdo53.tinymultiblocklib.block.IExpandingMultiblock
cancelChangeShape, canChangeShape, changeShape, hasShapeChanged, onPlaceHelper, postChangeShape, tryChangeShape, updateShapeHelperMethods 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, supportsExternalFaceHidingMethods inherited from interface net.nikdo53.tinymultiblocklib.block.IMBStateSharer
createSharedBlockStates, getSharedStateProperties, getSharedStatePropertiesBuilder, shareBlockStatesMethods inherited from interface net.nikdo53.tinymultiblocklib.block.IMovableMultiblock
gatherStates, moveMultiblockMethods 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, voxelShapeHelperMethods 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:
getTickerin interfacenet.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:
getShadeBrightnessin classnet.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:
propagatesSkylightDownin classnet.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:
makeFullBlockShapein interfacenet.nikdo53.tinymultiblocklib.block.IMultiBlock
-
getStateForPlacement
@Nullable public @Nullable net.minecraft.world.level.block.state.BlockState getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context) - Overrides:
getStateForPlacementin classnet.nikdo53.tinymultiblocklib.block.AbstractMultiBlock
-
getDefaultStateForPreviews
public net.minecraft.world.level.block.state.BlockState getDefaultStateForPreviews(net.minecraft.core.Direction direction) - Specified by:
getDefaultStateForPreviewsin interfacenet.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:
getMultiblockRenderShapein classnet.nikdo53.tinymultiblocklib.block.AbstractMultiBlock
-
getDirectionProperty
@Nullable public @Nullable net.minecraft.world.level.block.state.properties.DirectionProperty getDirectionProperty()- Specified by:
getDirectionPropertyin interfacenet.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:
createBlockStateDefinitionin classnet.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:
useItemOnin interfacenet.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:
useWithoutItemin interfacenet.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:
newBlockEntityin interfacenet.minecraft.world.level.block.EntityBlock- Overrides:
newBlockEntityin classnet.nikdo53.tinymultiblocklib.block.AbstractMultiBlock
-
hasCustomBE
public boolean hasCustomBE()- Overrides:
hasCustomBEin classnet.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:
getContainerin interfacenet.minecraft.world.WorldlyContainerHolder
-