Class IronFurnacesFurnaceHandler
java.lang.Object
com.hammy275.immersivemc.common.immersive.handler.ContainerHandler<ListOfItemsStorage>
com.hammy275.immersivemc.common.immersive.handler.FurnaceHandler
com.hammy275.immersivemc.common.immersive.handler.IronFurnacesFurnaceHandler
- All Implemented Interfaces:
ImmersiveHandler<ListOfItemsStorage>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidawardXP(net.minecraft.world.WorldlyContainer furnace, net.minecraft.server.level.ServerPlayer player) booleanenabledInConfig(net.minecraft.world.entity.player.Player player) net.minecraft.resources.IdentifiergetID()booleanisValidBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level) Methods inherited from class FurnaceHandler
getEmptyNetworkStorage, makeInventoryContents, swapMethods inherited from class ContainerHandler
clientAuthoritative, isDirtyForClientSyncMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ImmersiveHandler
onStopTracking
-
Constructor Details
-
IronFurnacesFurnaceHandler
public IronFurnacesFurnaceHandler()
-
-
Method Details
-
isValidBlock
public boolean isValidBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level) - Specified by:
isValidBlockin interfaceImmersiveHandler<ListOfItemsStorage>- Overrides:
isValidBlockin classFurnaceHandler- Parameters:
pos- Position to check.level- The level being checked in.- Returns:
- Whether the supplied block matches what this handler handles.
-
enabledInConfig
public boolean enabledInConfig(net.minecraft.world.entity.player.Player player) - Specified by:
enabledInConfigin interfaceImmersiveHandler<ListOfItemsStorage>- Overrides:
enabledInConfigin classFurnaceHandler- Parameters:
player- The player we're checking the config of.- Returns:
- Whether the immersive this handler handles is enabled. If you do not have a configuration system, this should always return true.
-
getID
public net.minecraft.resources.Identifier getID()- Specified by:
getIDin interfaceImmersiveHandler<ListOfItemsStorage>- Overrides:
getIDin classFurnaceHandler- Returns:
- A unique ID to identify this handler. The same value should always be returned by this method.
-
awardXP
protected void awardXP(net.minecraft.world.WorldlyContainer furnace, net.minecraft.server.level.ServerPlayer player) - Overrides:
awardXPin classFurnaceHandler
-