Package net.frozenblock.lib.wind.mixin
Class EntityMixin
java.lang.Object
net.frozenblock.lib.wind.mixin.EntityMixin
- All Implemented Interfaces:
WindDisturbingEntity,WindDisturbingEntityImpl
public abstract class EntityMixin
extends Object
implements WindDisturbingEntity, WindDisturbingEntityImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfrozenLib$addWindDisturbanceServer(org.spongepowered.asm.mixin.injection.callback.CallbackInfo info) double@Nullable net.minecraft.resources.ResourceLocationdoubledouble@Nullable WindDisturbancebooleannet.minecraft.world.level.Levellevel()
-
Constructor Details
-
EntityMixin
public EntityMixin()
-
-
Method Details
-
frozenLib$addWindDisturbanceServer
public void frozenLib$addWindDisturbanceServer(org.spongepowered.asm.mixin.injection.callback.CallbackInfo info) -
frozenLib$getWindDisturbanceLogicID
@Nullable public @Nullable net.minecraft.resources.ResourceLocation frozenLib$getWindDisturbanceLogicID()- Specified by:
frozenLib$getWindDisturbanceLogicIDin interfaceWindDisturbingEntity- Returns:
- the
ResourceLocationof the registeredWindDisturbanceLogicto use for this entity.
-
frozenLib$getWindWidth
public double frozenLib$getWindWidth()- Specified by:
frozenLib$getWindWidthin interfaceWindDisturbingEntity- Returns:
- the width of the wind disturbance.
-
frozenLib$getWindHeight
public double frozenLib$getWindHeight()- Specified by:
frozenLib$getWindHeightin interfaceWindDisturbingEntity- Returns:
- the height of the wind disturbance.
-
frozenLib$getWindAreaYOffset
public double frozenLib$getWindAreaYOffset()- Specified by:
frozenLib$getWindAreaYOffsetin interfaceWindDisturbingEntity- Returns:
- the vertical offset of the wind disturbance from the entity's center.
-
frozenLib$makeWindDisturbance
- Specified by:
frozenLib$makeWindDisturbancein interfaceWindDisturbingEntityImpl
-
frozenLib$useSyncPacket
public boolean frozenLib$useSyncPacket()- Specified by:
frozenLib$useSyncPacketin interfaceWindDisturbingEntity- Returns:
- whether this entity will sync its wind disturbance to the client via packets, or will create the disturbance separately on the server and client.
-
level
public net.minecraft.world.level.Level level()
-