Class FabricPlatformHelper
java.lang.Object
com.mrbysco.chowderexpress.platform.FabricPlatformHelper
- All Implemented Interfaces:
IPlatformHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.food.FoodPropertiesgetFoodProperties(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.player.Player player) Get the food properties of a soup item stack for a player.net.minecraft.world.level.block.state.properties.RailShapegetRailDirection(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) Get the rail direction of a rail block.Get the soup data serializer.
-
Constructor Details
-
FabricPlatformHelper
public FabricPlatformHelper()
-
-
Method Details
-
getRailDirection
public net.minecraft.world.level.block.state.properties.RailShape getRailDirection(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) Description copied from interface:IPlatformHelperGet the rail direction of a rail block.- Specified by:
getRailDirectionin interfaceIPlatformHelper- Parameters:
state- The block statelevel- The levelpos- The block position- Returns:
- The rail shape
-
getSoupSerializer
Description copied from interface:IPlatformHelperGet the soup data serializer.- Specified by:
getSoupSerializerin interfaceIPlatformHelper- Returns:
- The soup data serializer
-
getFoodProperties
public net.minecraft.world.food.FoodProperties getFoodProperties(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.player.Player player) Description copied from interface:IPlatformHelperGet the food properties of a soup item stack for a player.- Specified by:
getFoodPropertiesin interfaceIPlatformHelper- Parameters:
stack- The item stackplayer- The player consuming the soup- Returns:
- The food properties
-