Class HopperHandler
java.lang.Object
com.hammy275.immersivemc.common.immersive.handler.ContainerHandler<ListOfItemsStorage>
com.hammy275.immersivemc.common.immersive.handler.ChestLikeHandler
com.hammy275.immersivemc.common.immersive.handler.HopperHandler
- All Implemented Interfaces:
ImmersiveHandler<ListOfItemsStorage>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
enabledInConfig
(net.minecraft.world.entity.player.Player player) net.minecraft.resources.ResourceLocation
getID()
boolean
isValidBlock
(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level) Methods inherited from class com.hammy275.immersivemc.common.immersive.handler.ChestLikeHandler
canPlaceItem, getEmptyNetworkStorage, isDirtyForClientSync, makeInventoryContents, onStopTracking, swap
Methods inherited from class com.hammy275.immersivemc.common.immersive.handler.ContainerHandler
clientAuthoritative
-
Constructor Details
-
HopperHandler
public HopperHandler()
-
-
Method Details
-
isValidBlock
public boolean isValidBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level) - Specified by:
isValidBlock
in interfaceImmersiveHandler<ListOfItemsStorage>
- Overrides:
isValidBlock
in classChestLikeHandler
- 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) - 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.ResourceLocation getID()- Returns:
- A unique ID to identify this handler. The same value should always be returned by this method.
-