Interface IPlatformHelper

All Known Implementing Classes:
FabricPlatformHelper

public interface IPlatformHelper
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • Method Details

    • getRailDirection

      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.
      Parameters:
      state - The block state
      level - The level
      pos - The block position
      Returns:
      The rail shape
    • getSoupSerializer

      net.minecraft.network.syncher.EntityDataSerializer<Optional<SoupData>> getSoupSerializer()
      Get the soup data serializer.
      Returns:
      The soup data serializer