Class CampfireBlockMixin

java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseEntityBlock
de.cech12.unlitcampfire.mixin.CampfireBlockMixin
All Implemented Interfaces:
ICampfireBlockMixin, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.block.EntityBlock, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeBlock

public abstract class CampfireBlockMixin extends net.minecraft.world.level.block.BaseEntityBlock implements ICampfireBlockMixin
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block

    net.minecraft.world.level.block.Block.UpdateFlags

    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_SKIP_ALL_SIDEEFFECTS, UPDATE_SKIP_BLOCK_ENTITY_SIDEEFFECTS, UPDATE_SKIP_ON_PLACE, UPDATE_SKIP_SHAPE_UPDATE_ON_WIRE, UPDATE_SUPPRESS_DROPS

    Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour

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

    Fields inherited from interface de.cech12.unlitcampfire.mixinaccess.ICampfireBlockMixin

    INFINITE, RUNS_OUT
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    CampfireBlockMixin(net.minecraft.world.level.block.state.BlockBehaviour.Properties builder)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    createBlockStateDefinitionProxy(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.state.BlockState> stateBuilder, org.spongepowered.asm.mixin.injection.callback.CallbackInfo info)
     
    protected void
    getStateForPlacementProxy(net.minecraft.world.item.context.BlockPlaceContext context, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<net.minecraft.world.level.block.state.BlockState> cir)
     
    void
    id$animateTick(@NotNull net.minecraft.world.level.block.state.BlockState stateIn, net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, @NotNull net.minecraft.util.RandomSource rand)
     
    protected void
    initProxy(boolean spawnParticles, int fireDamage, net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, org.spongepowered.asm.mixin.injection.callback.CallbackInfo info)
     
    boolean
    unlitCampfire$burnsInfinite(net.minecraft.world.level.block.state.BlockState state)
     
    int
    unlitCampfire$getMaxLitTime(net.minecraft.world.level.block.state.BlockState state)
     
    int
    unlitCampfire$getMaxLitTimeExtension(net.minecraft.world.level.block.state.BlockState state)
     
    int
    unlitCampfire$getRunsOutIndicatorTime(net.minecraft.world.level.block.state.BlockState state)
     
    protected void
    useProxy(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, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<net.minecraft.world.InteractionResult> cir)
     

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

    codec, createTickerHelper, getMenuProvider, triggerEvent

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

    animateTick, asBlock, asItem, box, boxes, boxZ, boxZ, boxZ, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, column, column, createBlockStateDefinition, cube, cube, defaultBlockState, destroy, dropFromBlockInteractLootTable, dropFromExplosion, dropFromLootTable, dropResources, dropResources, dropResources, dropResources, fallOn, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, getStateForPlacement, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityMovementAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf

    Methods inherited from class net.minecraft.world.level.block.state.BlockBehaviour

    affectNeighborsAfterRemoval, attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCloneItemStack, getCollisionShape, getDescriptionId, getDestroyProgress, getDirectSignal, getDrops, getEntityInsideCollisionShape, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getShape, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, mirror, neighborChanged, onExplosionHit, onPlace, onProjectileHit, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, rotate, shouldChangedStateKeepBlockEntity, simpleCodec, skipRendering, spawnAfterBreak, tick, updateIndirectNeighbourShapes, updateShape, useItemOn, 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, getTicker, newBlockEntity

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled

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

    addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, 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
  • Constructor Details

    • CampfireBlockMixin

      protected CampfireBlockMixin(net.minecraft.world.level.block.state.BlockBehaviour.Properties builder)
  • Method Details

    • unlitCampfire$getMaxLitTimeExtension

      public int unlitCampfire$getMaxLitTimeExtension(net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      unlitCampfire$getMaxLitTimeExtension in interface ICampfireBlockMixin
    • unlitCampfire$getMaxLitTime

      public int unlitCampfire$getMaxLitTime(net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      unlitCampfire$getMaxLitTime in interface ICampfireBlockMixin
    • unlitCampfire$getRunsOutIndicatorTime

      public int unlitCampfire$getRunsOutIndicatorTime(net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      unlitCampfire$getRunsOutIndicatorTime in interface ICampfireBlockMixin
    • unlitCampfire$burnsInfinite

      public boolean unlitCampfire$burnsInfinite(net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      unlitCampfire$burnsInfinite in interface ICampfireBlockMixin
    • initProxy

      protected void initProxy(boolean spawnParticles, int fireDamage, net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, org.spongepowered.asm.mixin.injection.callback.CallbackInfo info)
    • getStateForPlacementProxy

      protected void getStateForPlacementProxy(net.minecraft.world.item.context.BlockPlaceContext context, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<net.minecraft.world.level.block.state.BlockState> cir)
    • useProxy

      protected void useProxy(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, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<net.minecraft.world.InteractionResult> cir)
    • createBlockStateDefinitionProxy

      protected void createBlockStateDefinitionProxy(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.state.BlockState> stateBuilder, org.spongepowered.asm.mixin.injection.callback.CallbackInfo info)
    • id$animateTick

      public void id$animateTick(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState stateIn, net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.util.RandomSource rand)