Package com.minecolonies.api.blocks.huts
Class AbstractBlockMinecoloniesDefault<B extends AbstractBlockMinecoloniesDefault<B>>
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
com.minecolonies.api.blocks.AbstractBlockMinecolonies<B>
com.minecolonies.api.blocks.AbstractBlockMinecoloniesContainer<B>
com.minecolonies.api.blocks.huts.AbstractBlockMinecoloniesDefault<B>
- All Implemented Interfaces:
IBlockMinecolonies<B>,net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike,net.neoforged.neoforge.common.extensions.IBlockExtension
- Direct Known Subclasses:
BlockScarecrow
public abstract class AbstractBlockMinecoloniesDefault<B extends AbstractBlockMinecoloniesDefault<B>>
extends AbstractBlockMinecoloniesContainer<B>
-
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>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleStart of the collision box at y.static final doubleEnd of the collision box.static final net.minecraft.world.level.block.state.properties.DirectionPropertyThe position it faces.static final floatHardness of the block.static final doubleHeight of the collision box.static final StringRegistry name for this block.static final floatResistance of the block.static final doubleStart of the collision box at x and z.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_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
ConstructorsConstructorDescriptionAbstractBlockMinecoloniesDefault(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionregisterBlock(net.minecraft.core.Registry<net.minecraft.world.level.block.Block> registry) Registery block at gameregistry.voidregisterBlockItem(net.minecraft.core.Registry<net.minecraft.world.item.Item> registry, net.minecraft.world.item.Item.Properties properties) Registery block at gameregistry.Methods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, codec, createBlockStateDefinition, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getSpeedFactor, getStateDefinition, getStateForPlacement, 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, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getShape, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, mirror, neighborChanged, onExplosionHit, onPlace, onProjectileHit, onRemove, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, rotate, simpleCodec, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, updateShape, useItemOn, useShapeForLightOcclusion, useWithoutItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods 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, supportsExternalFaceHidingMethods inherited from interface com.minecolonies.api.blocks.interfaces.IBlockMinecolonies
getRegistryName
-
Field Details
-
FACING
public static final net.minecraft.world.level.block.state.properties.DirectionProperty FACINGThe position it faces. -
HARDNESS
public static final float HARDNESSHardness of the block.- See Also:
-
RESISTANCE
public static final float RESISTANCEResistance of the block.- See Also:
-
BOTTOM_COLLISION
public static final double BOTTOM_COLLISIONStart of the collision box at y.- See Also:
-
START_COLLISION
public static final double START_COLLISIONStart of the collision box at x and z.- See Also:
-
END_COLLISION
public static final double END_COLLISIONEnd of the collision box.- See Also:
-
HEIGHT_COLLISION
public static final double HEIGHT_COLLISIONHeight of the collision box.- See Also:
-
REGISTRY_NAME
Registry name for this block.- See Also:
-
-
Constructor Details
-
AbstractBlockMinecoloniesDefault
public AbstractBlockMinecoloniesDefault(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties)
-
-
Method Details
-
registerBlock
Description copied from interface:IBlockMinecoloniesRegistery block at gameregistry.- Specified by:
registerBlockin interfaceIBlockMinecolonies<B extends AbstractBlockMinecoloniesDefault<B>>- Overrides:
registerBlockin classAbstractBlockMinecolonies<B extends AbstractBlockMinecoloniesDefault<B>>- Parameters:
registry- the registry to use.- Returns:
- the block itself.
-
registerBlockItem
public void registerBlockItem(net.minecraft.core.Registry<net.minecraft.world.item.Item> registry, net.minecraft.world.item.Item.Properties properties) Description copied from interface:IBlockMinecoloniesRegistery block at gameregistry.- Specified by:
registerBlockItemin interfaceIBlockMinecolonies<B extends AbstractBlockMinecoloniesDefault<B>>- Overrides:
registerBlockItemin classAbstractBlockMinecolonies<B extends AbstractBlockMinecoloniesDefault<B>>- Parameters:
registry- the registry to use.properties- the item properties.
-