mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-23 21:49:46 +00:00
Forge 1.19.4
Properly move `ServerStatusPing` to codec Reimplement custom display contexts Co-authored-by: Matyrobbrt <[email protected]> Co-authored-by: coehlrich <[email protected]> Signed-off-by: SizableShrimp <[email protected]>
This commit is contained in:
1 parent
1f44339d6e
commit
44c689f171
347 files changed
+2545
-2436
No files matched your search
@@ -15,6 +15,7 @@ import net.minecraft.client.resources.model.BakedModel;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.core.Direction;
|
||||
import net.minecraft.util.RandomSource;
|
||||
import net.minecraft.world.item.ItemDisplayContext;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.level.BlockAndTintGetter;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
@@ -59,7 +60,7 @@ public interface IForgeBakedModel
|
||||
* Applies a transform for the given {@link ItemTransforms.TransformType} and {@code applyLeftHandTransform}, and
|
||||
* returns the model to be rendered.
|
||||
*/
|
||||
default BakedModel applyTransform(ItemTransforms.TransformType transformType, PoseStack poseStack, boolean applyLeftHandTransform)
|
||||
default BakedModel applyTransform(ItemDisplayContext transformType, PoseStack poseStack, boolean applyLeftHandTransform)
|
||||
{
|
||||
self().getTransforms().getTransform(transformType).apply(applyLeftHandTransform, poseStack);
|
||||
return self();
|
||||
|
||||
@@ -45,6 +45,6 @@ public interface IForgeMinecraft
|
||||
*/
|
||||
default Locale getLocale()
|
||||
{
|
||||
return self().getLanguageManager().getSelected().getJavaLocale();
|
||||
return self().getLanguageManager().getJavaLocale();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user