Class FabricPlatformHelper

java.lang.Object
com.mrbysco.chowderexpress.platform.FabricPlatformHelper
All Implemented Interfaces:
IPlatformHelper

public class FabricPlatformHelper extends Object implements IPlatformHelper
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.food.FoodProperties
    getFoodProperties(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.RailShape
    getRailDirection(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.
    net.minecraft.network.syncher.EntityDataSerializer<Optional<SoupData>>
    Get the soup data serializer.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: IPlatformHelper
      Get the rail direction of a rail block.
      Specified by:
      getRailDirection in interface IPlatformHelper
      Parameters:
      state - The block state
      level - The level
      pos - The block position
      Returns:
      The rail shape
    • getSoupSerializer

      public net.minecraft.network.syncher.EntityDataSerializer<Optional<SoupData>> getSoupSerializer()
      Description copied from interface: IPlatformHelper
      Get the soup data serializer.
      Specified by:
      getSoupSerializer in interface IPlatformHelper
      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: IPlatformHelper
      Get the food properties of a soup item stack for a player.
      Specified by:
      getFoodProperties in interface IPlatformHelper
      Parameters:
      stack - The item stack
      player - The player consuming the soup
      Returns:
      The food properties