Package de.cech12.unlitcampfire.mixin
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.UpdateFlagsNested 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_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
descriptionId, drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIESFields inherited from interface de.cech12.unlitcampfire.mixinaccess.ICampfireBlockMixin
INFINITE, RUNS_OUT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCampfireBlockMixin(net.minecraft.world.level.block.state.BlockBehaviour.Properties builder) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateBlockStateDefinitionProxy(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 voidgetStateForPlacementProxy(net.minecraft.world.item.context.BlockPlaceContext context, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<net.minecraft.world.level.block.state.BlockState> cir) voidid$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 voidinitProxy(boolean spawnParticles, int fireDamage, net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, org.spongepowered.asm.mixin.injection.callback.CallbackInfo info) booleanunlitCampfire$burnsInfinite(net.minecraft.world.level.block.state.BlockState state) intunlitCampfire$getMaxLitTime(net.minecraft.world.level.block.state.BlockState state) intunlitCampfire$getMaxLitTimeExtension(net.minecraft.world.level.block.state.BlockState state) intunlitCampfire$getRunsOutIndicatorTime(net.minecraft.world.level.block.state.BlockState state) protected voiduseProxy(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, triggerEventMethods 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, withPropertiesOfMethods 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, 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
getListener, getTicker, newBlockEntityMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods 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$getMaxLitTimeExtensionin interfaceICampfireBlockMixin
-
unlitCampfire$getMaxLitTime
public int unlitCampfire$getMaxLitTime(net.minecraft.world.level.block.state.BlockState state) - Specified by:
unlitCampfire$getMaxLitTimein interfaceICampfireBlockMixin
-
unlitCampfire$getRunsOutIndicatorTime
public int unlitCampfire$getRunsOutIndicatorTime(net.minecraft.world.level.block.state.BlockState state) - Specified by:
unlitCampfire$getRunsOutIndicatorTimein interfaceICampfireBlockMixin
-
unlitCampfire$burnsInfinite
public boolean unlitCampfire$burnsInfinite(net.minecraft.world.level.block.state.BlockState state) - Specified by:
unlitCampfire$burnsInfinitein interfaceICampfireBlockMixin
-
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)
-