Class FabricXplatImpl
java.lang.Object
at.petrak.hexcasting.fabric.xplat.FabricXplatImpl
- All Implemented Interfaces:
at.petrak.hexcasting.xplat.IXplatAbstractions
public class FabricXplatImpl
extends Object
implements at.petrak.hexcasting.xplat.IXplatAbstractions
-
Field Summary
Fields inherited from interface at.petrak.hexcasting.xplat.IXplatAbstractions
INSTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.Item.PropertiesaddEquipSlotFabric(net.minecraft.world.entity.EquipmentSlot slot) voidbrainsweep(net.minecraft.world.entity.Mob mob) voidclearCastingData(net.minecraft.server.level.ServerPlayer player) <T extends net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntityType<T>createBlockEntityType(BiFunction<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState, T> func, net.minecraft.world.level.block.Block... blocks) @Nullable at.petrak.hexcasting.api.addldata.DataHolderfindDataHolder(net.minecraft.world.item.ItemStack stack) @Nullable at.petrak.hexcasting.api.addldata.HexHolderfindHexHolder(net.minecraft.world.item.ItemStack stack) @Nullable at.petrak.hexcasting.api.addldata.ManaHolderfindManaHolder(net.minecraft.world.item.ItemStack stack) at.petrak.hexcasting.api.misc.FrozenColorizergetColorizer(net.minecraft.world.entity.player.Player player) at.petrak.hexcasting.api.player.FlightAbilitygetFlight(net.minecraft.server.level.ServerPlayer player) at.petrak.hexcasting.api.spell.casting.CastingHarnessgetHarness(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.InteractionHand hand) net.minecraft.resources.ResourceLocationgetID(net.minecraft.world.entity.npc.VillagerProfession profession) net.minecraft.resources.ResourceLocationgetID(net.minecraft.world.item.Item item) net.minecraft.resources.ResourceLocationgetID(net.minecraft.world.level.block.Block block) List<at.petrak.hexcasting.api.spell.casting.ResolvedPattern>getPatterns(net.minecraft.server.level.ServerPlayer player) intgetRawColor(at.petrak.hexcasting.api.misc.FrozenColorizer colorizer, float time, net.minecraft.world.phys.Vec3 position) net.minecraft.world.entity.ai.attributes.Attributeat.petrak.hexcasting.api.player.SentinelgetSentinel(net.minecraft.world.entity.player.Player player) net.minecraft.world.item.CreativeModeTabgetTab()net.minecraft.world.item.crafting.IngredientgetUnsealedIngredient(net.minecraft.world.item.ItemStack stack) voidbooleanisBrainswept(net.minecraft.world.entity.Mob mob) booleanisColorizer(net.minecraft.world.item.ItemStack stack) booleanisCorrectTierForDrops(net.minecraft.world.item.Tier tier, net.minecraft.world.level.block.state.BlockState bs) booleanisModPresent(String id) booleannet.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builderat.petrak.hexcasting.xplat.Platformplatform()voidsendPacketNear(net.minecraft.world.phys.Vec3 pos, double radius, net.minecraft.server.level.ServerLevel dimension, at.petrak.hexcasting.common.network.IMessage packet) voidsendPacketToPlayer(net.minecraft.server.level.ServerPlayer target, at.petrak.hexcasting.common.network.IMessage packet) voidsetColorizer(net.minecraft.world.entity.player.Player target, at.petrak.hexcasting.api.misc.FrozenColorizer colorizer) voidsetFlight(net.minecraft.server.level.ServerPlayer target, at.petrak.hexcasting.api.player.FlightAbility flight) voidsetHarness(net.minecraft.server.level.ServerPlayer target, at.petrak.hexcasting.api.spell.casting.CastingHarness harness) voidsetPatterns(net.minecraft.server.level.ServerPlayer target, List<at.petrak.hexcasting.api.spell.casting.ResolvedPattern> patterns) voidsetSentinel(net.minecraft.world.entity.player.Player target, at.petrak.hexcasting.api.player.Sentinel sentinel) at.petrak.hexcasting.xplat.IXplatTagstags()net.minecraft.network.protocol.Packet<?>toVanillaClientboundPacket(at.petrak.hexcasting.common.network.IMessage message) booleantryPlaceFluid(net.minecraft.world.level.Level level, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.material.Fluid fluid)
-
Constructor Details
-
FabricXplatImpl
public FabricXplatImpl()
-
-
Method Details
-
platform
public at.petrak.hexcasting.xplat.Platform platform()- Specified by:
platformin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
isPhysicalClient
public boolean isPhysicalClient()- Specified by:
isPhysicalClientin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
isModPresent
- Specified by:
isModPresentin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
initPlatformSpecific
public void initPlatformSpecific()- Specified by:
initPlatformSpecificin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getReachDistance
public net.minecraft.world.entity.ai.attributes.Attribute getReachDistance()- Specified by:
getReachDistancein interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
sendPacketToPlayer
public void sendPacketToPlayer(net.minecraft.server.level.ServerPlayer target, at.petrak.hexcasting.common.network.IMessage packet) - Specified by:
sendPacketToPlayerin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
sendPacketNear
public void sendPacketNear(net.minecraft.world.phys.Vec3 pos, double radius, net.minecraft.server.level.ServerLevel dimension, at.petrak.hexcasting.common.network.IMessage packet) - Specified by:
sendPacketNearin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
toVanillaClientboundPacket
public net.minecraft.network.protocol.Packet<?> toVanillaClientboundPacket(at.petrak.hexcasting.common.network.IMessage message) - Specified by:
toVanillaClientboundPacketin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
brainsweep
public void brainsweep(net.minecraft.world.entity.Mob mob) - Specified by:
brainsweepin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
setColorizer
public void setColorizer(net.minecraft.world.entity.player.Player target, at.petrak.hexcasting.api.misc.FrozenColorizer colorizer) - Specified by:
setColorizerin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
setSentinel
public void setSentinel(net.minecraft.world.entity.player.Player target, at.petrak.hexcasting.api.player.Sentinel sentinel) - Specified by:
setSentinelin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
setFlight
public void setFlight(net.minecraft.server.level.ServerPlayer target, at.petrak.hexcasting.api.player.FlightAbility flight) - Specified by:
setFlightin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
setHarness
public void setHarness(net.minecraft.server.level.ServerPlayer target, at.petrak.hexcasting.api.spell.casting.CastingHarness harness) - Specified by:
setHarnessin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
setPatterns
public void setPatterns(net.minecraft.server.level.ServerPlayer target, List<at.petrak.hexcasting.api.spell.casting.ResolvedPattern> patterns) - Specified by:
setPatternsin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
isBrainswept
public boolean isBrainswept(net.minecraft.world.entity.Mob mob) - Specified by:
isBrainsweptin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getFlight
public at.petrak.hexcasting.api.player.FlightAbility getFlight(net.minecraft.server.level.ServerPlayer player) - Specified by:
getFlightin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getColorizer
public at.petrak.hexcasting.api.misc.FrozenColorizer getColorizer(net.minecraft.world.entity.player.Player player) - Specified by:
getColorizerin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getSentinel
public at.petrak.hexcasting.api.player.Sentinel getSentinel(net.minecraft.world.entity.player.Player player) - Specified by:
getSentinelin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getHarness
public at.petrak.hexcasting.api.spell.casting.CastingHarness getHarness(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.InteractionHand hand) - Specified by:
getHarnessin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getPatterns
public List<at.petrak.hexcasting.api.spell.casting.ResolvedPattern> getPatterns(net.minecraft.server.level.ServerPlayer player) - Specified by:
getPatternsin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
clearCastingData
public void clearCastingData(net.minecraft.server.level.ServerPlayer player) - Specified by:
clearCastingDatain interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
findManaHolder
@Nullable public @Nullable at.petrak.hexcasting.api.addldata.ManaHolder findManaHolder(net.minecraft.world.item.ItemStack stack) - Specified by:
findManaHolderin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
findDataHolder
@Nullable public @Nullable at.petrak.hexcasting.api.addldata.DataHolder findDataHolder(net.minecraft.world.item.ItemStack stack) - Specified by:
findDataHolderin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
findHexHolder
@Nullable public @Nullable at.petrak.hexcasting.api.addldata.HexHolder findHexHolder(net.minecraft.world.item.ItemStack stack) - Specified by:
findHexHolderin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
isColorizer
public boolean isColorizer(net.minecraft.world.item.ItemStack stack) - Specified by:
isColorizerin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getRawColor
public int getRawColor(at.petrak.hexcasting.api.misc.FrozenColorizer colorizer, float time, net.minecraft.world.phys.Vec3 position) - Specified by:
getRawColorin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
createBlockEntityType
public <T extends net.minecraft.world.level.block.entity.BlockEntity> net.minecraft.world.level.block.entity.BlockEntityType<T> createBlockEntityType(BiFunction<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState, T> func, net.minecraft.world.level.block.Block... blocks) - Specified by:
createBlockEntityTypein interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
tryPlaceFluid
public boolean tryPlaceFluid(net.minecraft.world.level.Level level, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.material.Fluid fluid) - Specified by:
tryPlaceFluidin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getID
public net.minecraft.resources.ResourceLocation getID(net.minecraft.world.level.block.Block block) - Specified by:
getIDin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getID
public net.minecraft.resources.ResourceLocation getID(net.minecraft.world.item.Item item) - Specified by:
getIDin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getID
public net.minecraft.resources.ResourceLocation getID(net.minecraft.world.entity.npc.VillagerProfession profession) - Specified by:
getIDin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getUnsealedIngredient
public net.minecraft.world.item.crafting.Ingredient getUnsealedIngredient(net.minecraft.world.item.ItemStack stack) - Specified by:
getUnsealedIngredientin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
getTab
public net.minecraft.world.item.CreativeModeTab getTab()- Specified by:
getTabin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
isCorrectTierForDrops
public boolean isCorrectTierForDrops(net.minecraft.world.item.Tier tier, net.minecraft.world.level.block.state.BlockState bs) - Specified by:
isCorrectTierForDropsin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
addEquipSlotFabric
public net.minecraft.world.item.Item.Properties addEquipSlotFabric(net.minecraft.world.entity.EquipmentSlot slot) - Specified by:
addEquipSlotFabricin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
tags
public at.petrak.hexcasting.xplat.IXplatTags tags()- Specified by:
tagsin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-
isShearsCondition
public net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder isShearsCondition()- Specified by:
isShearsConditionin interfaceat.petrak.hexcasting.xplat.IXplatAbstractions
-