Class FabricPlatformHelper

java.lang.Object
com.mrbysco.ghastcow.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
    boolean
    cancelMobGriefing(net.minecraft.server.level.ServerLevel serverLevel, net.minecraft.world.entity.Entity entity)
    If mob griefing should be canceled
    float
    getBlockFriction(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos ground, net.minecraft.world.entity.Entity entity)
    Get the friction of the block
    boolean
    If the cow needs to be called 'ghast'

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FabricPlatformHelper

      public FabricPlatformHelper()
  • Method Details

    • cancelMobGriefing

      public boolean cancelMobGriefing(net.minecraft.server.level.ServerLevel serverLevel, net.minecraft.world.entity.Entity entity)
      Description copied from interface: IPlatformHelper
      If mob griefing should be canceled
      Specified by:
      cancelMobGriefing in interface IPlatformHelper
    • getBlockFriction

      public float getBlockFriction(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos ground, net.minecraft.world.entity.Entity entity)
      Description copied from interface: IPlatformHelper
      Get the friction of the block
      Specified by:
      getBlockFriction in interface IPlatformHelper
    • requiresName

      public boolean requiresName()
      Description copied from interface: IPlatformHelper
      If the cow needs to be called 'ghast'
      Specified by:
      requiresName in interface IPlatformHelper
      Returns:
      the configured option for `requireNamed`