Class CopycatBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
com.simibubi.create.content.decoration.copycat.CopycatBlock
- All Implemented Interfaces:
IWrenchable,IBE<CopycatBlockEntity>,net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.block.EntityBlock,net.minecraft.world.level.ItemLike,net.neoforged.neoforge.common.extensions.IBlockExtension
- Direct Known Subclasses:
WaterloggedCopycatBlock
public abstract class CopycatBlock
extends net.minecraft.world.level.block.Block
implements IBE<CopycatBlockEntity>, IWrenchable
-
Nested Class Summary
Nested ClassesNested 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
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
ConstructorsConstructorDescriptionCopycatBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties pProperties) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLandingEffects(net.minecraft.world.level.block.state.BlockState state1, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state2, net.minecraft.world.entity.LivingEntity entity, int numberOfParticles) booleanaddRunningEffects(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.Entity entity) abstract booleancanConnectTexturesToward(net.minecraft.world.level.BlockAndTintGetter reader, net.minecraft.core.BlockPos fromPos, net.minecraft.core.BlockPos toPos, net.minecraft.world.level.block.state.BlockState state) booleancanEntityDestroy(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.Entity entity) booleancanFaceBeOccluded(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face) booleancanHarvestBlock(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) voidfallOn(net.minecraft.world.level.Level pLevel, net.minecraft.world.level.block.state.BlockState pState, net.minecraft.core.BlockPos pPos, net.minecraft.world.entity.Entity pEntity, float p_152430_) net.minecraft.world.level.block.state.BlockStategetAcceptedBlockState(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.item.ItemStack item, net.minecraft.core.Direction face) net.minecraft.world.level.block.state.BlockStategetAppearance(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndTintGetter level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side, net.minecraft.world.level.block.state.BlockState queryState, net.minecraft.core.BlockPos queryPos) net.minecraft.world.level.block.entity.BlockEntityType<? extends CopycatBlockEntity> net.minecraft.world.item.ItemStackgetCloneItemStack(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.HitResult target, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) floatgetDestroyProgress(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.entity.player.Player pPlayer, net.minecraft.world.level.BlockGetter pLevel, net.minecraft.core.BlockPos pPos) floatgetEnchantPowerBonus(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos) floatgetExplosionResistance(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.Explosion explosion) floatgetFriction(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.Entity entity) intgetLightEmission(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos) static net.minecraft.world.level.block.state.BlockStategetMaterial(net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos targetPos) net.minecraft.world.level.block.SoundTypegetSoundType(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.Entity entity) <S extends net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntityTicker<S> getTicker(net.minecraft.world.level.Level p_153212_, net.minecraft.world.level.block.state.BlockState p_153213_, net.minecraft.world.level.block.entity.BlockEntityType<S> p_153214_) booleanisAcceptedRegardless(net.minecraft.world.level.block.state.BlockState material) booleanisIgnoredConnectivitySide(net.minecraft.world.level.BlockAndTintGetter reader, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face, net.minecraft.core.BlockPos fromPos, net.minecraft.core.BlockPos toPos) voidonRemove(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pNewState, boolean pIsMoving) net.minecraft.world.InteractionResultonSneakWrenched(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.UseOnContext context) net.minecraft.world.InteractionResultonWrenched(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.UseOnContext context) net.minecraft.world.level.block.state.BlockStateplayerWillDestroy(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.entity.player.Player pPlayer) net.minecraft.world.level.block.state.BlockStateprepareMaterial(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.entity.player.Player pPlayer, net.minecraft.world.InteractionHand pHand, net.minecraft.world.phys.BlockHitResult pHit, net.minecraft.world.level.block.state.BlockState material) voidsetPlacedBy(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.entity.LivingEntity pPlacer, net.minecraft.world.item.ItemStack pStack) booleanshouldFaceAlwaysRender(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face) protected net.minecraft.world.ItemInteractionResultuseItemOn(net.minecraft.world.item.ItemStack stack, 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) static net.minecraft.client.color.block.BlockColorMethods 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, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getSpeedFactor, getStateDefinition, getStateForPlacement, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, 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, 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, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, rotate, simpleCodec, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, updateShape, useShapeForLightOcclusion, useWithoutItemMethods 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 com.simibubi.create.foundation.block.IBE
getBlockEntity, getBlockEntityOptional, newBlockEntity, onBlockEntityUse, onBlockEntityUseItemOn, withBlockEntityDoMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockExtension
canBeHydrated, canConnectRedstone, canDropFromExplosion, canStickTo, canSustainPlant, collisionExtendsVertically, getAdjacentBlockPathType, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getBubbleColumnDirection, getExpDrop, getFireSpreadSpeed, getFlammability, getMapColor, getPistonPushReaction, getRespawnPosition, 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, supportsExternalFaceHidingMethods inherited from interface com.simibubi.create.content.equipment.wrench.IWrenchable
getRotatedBlockState, updateAfterWrenched
-
Constructor Details
-
CopycatBlock
public CopycatBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties pProperties)
-
-
Method Details
-
getTicker
@Nullable public <S extends net.minecraft.world.level.block.entity.BlockEntity> net.minecraft.world.level.block.entity.BlockEntityTicker<S> getTicker(net.minecraft.world.level.Level p_153212_, net.minecraft.world.level.block.state.BlockState p_153213_, net.minecraft.world.level.block.entity.BlockEntityType<S> p_153214_) - Specified by:
getTickerin interfacenet.minecraft.world.level.block.EntityBlock- Specified by:
getTickerin interfaceIBE<CopycatBlockEntity>
-
onSneakWrenched
public net.minecraft.world.InteractionResult onSneakWrenched(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.UseOnContext context) - Specified by:
onSneakWrenchedin interfaceIWrenchable
-
onWrenched
public net.minecraft.world.InteractionResult onWrenched(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.UseOnContext context) - Specified by:
onWrenchedin interfaceIWrenchable
-
useItemOn
protected net.minecraft.world.ItemInteractionResult useItemOn(net.minecraft.world.item.ItemStack stack, 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) - Overrides:
useItemOnin classnet.minecraft.world.level.block.state.BlockBehaviour
-
setPlacedBy
public void setPlacedBy(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.entity.LivingEntity pPlacer, net.minecraft.world.item.ItemStack pStack) - Overrides:
setPlacedByin classnet.minecraft.world.level.block.Block
-
getAcceptedBlockState
@Nullable public net.minecraft.world.level.block.state.BlockState getAcceptedBlockState(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.item.ItemStack item, net.minecraft.core.Direction face) -
isAcceptedRegardless
public boolean isAcceptedRegardless(net.minecraft.world.level.block.state.BlockState material) -
prepareMaterial
public net.minecraft.world.level.block.state.BlockState prepareMaterial(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.entity.player.Player pPlayer, net.minecraft.world.InteractionHand pHand, net.minecraft.world.phys.BlockHitResult pHit, net.minecraft.world.level.block.state.BlockState material) -
onRemove
public void onRemove(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pNewState, boolean pIsMoving) - Overrides:
onRemovein classnet.minecraft.world.level.block.state.BlockBehaviour
-
playerWillDestroy
public net.minecraft.world.level.block.state.BlockState playerWillDestroy(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.entity.player.Player pPlayer) - Overrides:
playerWillDestroyin classnet.minecraft.world.level.block.Block
-
getBlockEntityClass
- Specified by:
getBlockEntityClassin interfaceIBE<CopycatBlockEntity>
-
getBlockEntityType
public net.minecraft.world.level.block.entity.BlockEntityType<? extends CopycatBlockEntity> getBlockEntityType()- Specified by:
getBlockEntityTypein interfaceIBE<CopycatBlockEntity>
-
getAppearance
public net.minecraft.world.level.block.state.BlockState getAppearance(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndTintGetter level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side, net.minecraft.world.level.block.state.BlockState queryState, net.minecraft.core.BlockPos queryPos) - Specified by:
getAppearancein interfacenet.neoforged.neoforge.common.extensions.IBlockExtension
-
isIgnoredConnectivitySide
public boolean isIgnoredConnectivitySide(net.minecraft.world.level.BlockAndTintGetter reader, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face, net.minecraft.core.BlockPos fromPos, net.minecraft.core.BlockPos toPos) -
canConnectTexturesToward
public abstract boolean canConnectTexturesToward(net.minecraft.world.level.BlockAndTintGetter reader, net.minecraft.core.BlockPos fromPos, net.minecraft.core.BlockPos toPos, net.minecraft.world.level.block.state.BlockState state) -
getMaterial
public static net.minecraft.world.level.block.state.BlockState getMaterial(net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos targetPos) -
canFaceBeOccluded
public boolean canFaceBeOccluded(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face) -
shouldFaceAlwaysRender
public boolean shouldFaceAlwaysRender(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face) -
getSoundType
public net.minecraft.world.level.block.SoundType getSoundType(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.Entity entity) - Specified by:
getSoundTypein interfacenet.neoforged.neoforge.common.extensions.IBlockExtension
-
getFriction
public float getFriction(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.Entity entity) - Specified by:
getFrictionin interfacenet.neoforged.neoforge.common.extensions.IBlockExtension
-
getLightEmission
public int getLightEmission(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos) - Specified by:
getLightEmissionin interfacenet.neoforged.neoforge.common.extensions.IBlockExtension
-
canHarvestBlock
public boolean canHarvestBlock(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) - Specified by:
canHarvestBlockin interfacenet.neoforged.neoforge.common.extensions.IBlockExtension
-
getExplosionResistance
public float getExplosionResistance(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.Explosion explosion) - Specified by:
getExplosionResistancein interfacenet.neoforged.neoforge.common.extensions.IBlockExtension
-
getCloneItemStack
public net.minecraft.world.item.ItemStack getCloneItemStack(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.HitResult target, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) - Specified by:
getCloneItemStackin interfacenet.neoforged.neoforge.common.extensions.IBlockExtension
-
addLandingEffects
public boolean addLandingEffects(net.minecraft.world.level.block.state.BlockState state1, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state2, net.minecraft.world.entity.LivingEntity entity, int numberOfParticles) - Specified by:
addLandingEffectsin interfacenet.neoforged.neoforge.common.extensions.IBlockExtension
-
addRunningEffects
public boolean addRunningEffects(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.Entity entity) - Specified by:
addRunningEffectsin interfacenet.neoforged.neoforge.common.extensions.IBlockExtension
-
getEnchantPowerBonus
public float getEnchantPowerBonus(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos) - Specified by:
getEnchantPowerBonusin interfacenet.neoforged.neoforge.common.extensions.IBlockExtension
-
canEntityDestroy
public boolean canEntityDestroy(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.Entity entity) - Specified by:
canEntityDestroyin interfacenet.neoforged.neoforge.common.extensions.IBlockExtension
-
fallOn
public void fallOn(net.minecraft.world.level.Level pLevel, net.minecraft.world.level.block.state.BlockState pState, net.minecraft.core.BlockPos pPos, net.minecraft.world.entity.Entity pEntity, float p_152430_) - Overrides:
fallOnin classnet.minecraft.world.level.block.Block
-
getDestroyProgress
public float getDestroyProgress(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.entity.player.Player pPlayer, net.minecraft.world.level.BlockGetter pLevel, net.minecraft.core.BlockPos pPos) - Overrides:
getDestroyProgressin classnet.minecraft.world.level.block.state.BlockBehaviour
-
wrappedColor
public static net.minecraft.client.color.block.BlockColor wrappedColor()
-