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 Classes
    Modifier and Type
    Class
    Description
    static class 
     

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

    Modifier and Type
    Method
    Description
    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)
     
    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)
     
    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)
     
    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)
     
    boolean
    canFaceBeOccluded(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
     
    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)
     
    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_)
     
    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)
     
    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)
     
     
    net.minecraft.world.level.block.entity.BlockEntityType<? extends CopycatBlockEntity>
     
    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)
     
    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)
     
    float
    getEnchantPowerBonus(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos)
     
    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)
     
    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)
     
    int
    getLightEmission(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.BlockState
    getMaterial(net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos targetPos)
     
    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)
     
    <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_)
     
    boolean
    isAcceptedRegardless(net.minecraft.world.level.block.state.BlockState material)
     
    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)
     
    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)
     
    net.minecraft.world.InteractionResult
    onSneakWrenched(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.UseOnContext context)
     
    net.minecraft.world.InteractionResult
    onWrenched(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.UseOnContext context)
     
    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)
     
    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)
     
    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)
     
    boolean
    shouldFaceAlwaysRender(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
     
    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)
     
    static net.minecraft.client.color.block.BlockColor
     

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

    Methods 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, useWithoutItem

    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 com.simibubi.create.foundation.block.IBE

    getBlockEntity, getBlockEntityOptional, newBlockEntity, onBlockEntityUse, onBlockEntityUseItemOn, withBlockEntityDo

    Methods 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, supportsExternalFaceHiding

    Methods 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:
      getTicker in interface net.minecraft.world.level.block.EntityBlock
      Specified by:
      getTicker in interface IBE<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:
      onSneakWrenched in interface IWrenchable
    • onWrenched

      public net.minecraft.world.InteractionResult onWrenched(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.UseOnContext context)
      Specified by:
      onWrenched in interface IWrenchable
    • 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:
      useItemOn in class net.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:
      setPlacedBy in class net.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:
      onRemove in class net.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:
      playerWillDestroy in class net.minecraft.world.level.block.Block
    • getBlockEntityClass

      public Class<CopycatBlockEntity> getBlockEntityClass()
      Specified by:
      getBlockEntityClass in interface IBE<CopycatBlockEntity>
    • getBlockEntityType

      public net.minecraft.world.level.block.entity.BlockEntityType<? extends CopycatBlockEntity> getBlockEntityType()
      Specified by:
      getBlockEntityType in interface IBE<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:
      getAppearance in interface net.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:
      getSoundType in interface net.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:
      getFriction in interface net.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:
      getLightEmission in interface net.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:
      canHarvestBlock in interface net.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:
      getExplosionResistance in interface net.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:
      getCloneItemStack in interface net.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:
      addLandingEffects in interface net.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:
      addRunningEffects in interface net.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:
      getEnchantPowerBonus in interface net.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:
      canEntityDestroy in interface net.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:
      fallOn in class net.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:
      getDestroyProgress in class net.minecraft.world.level.block.state.BlockBehaviour
    • wrappedColor

      public static net.minecraft.client.color.block.BlockColor wrappedColor()