Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/16/19 in all areas

  1. ...and you have 64 characters of length to play with.
    1 point
  2. I found the solution, you need a music in MONO not in STEREO ... @kaydogz
    1 point
  3. Its part of the Event parent class.
    1 point
  4. You'll need a custom recipe for this. For example, I have something similar for crafting: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/hardlib/api/recipe/RecipeTagOutput.java Furnace (blasting, smelting, cooking) recipes use a similar system, I believe the class to look at is AbstractFurnaceRecipe and its subclasses.
    1 point
  5. I don't think so. I also don't see the texture being bound. @nekosune Passes a TextureAtlasSprite(RenderEvents.MARK_SPRITE) to his drawTexturedOutline, but never binds that texture.
    1 point
  6. Not sure if this is the cause, but you enabled texture 2D, then immediately disabled it here.
    1 point
  7. No. The @SideOnly is used if the associated object should not exist on sides not specified in the parameters. This means classes annotated with @SideOnly(Side.Client) will not exist on the server side. It does nothing in loading something only on one side. Annotating an event subscriber with @SideOnly might work, but only due to the absence of the annotated object on the other side (which is considered hacky). One should use a side-specific event bus subscriber instead. GasMaskBar is client only. Assuming your event handler is triggered on both sides, this will cause a crash on the server. Either register your GUI in a client proxy or create a client-side event subscriber and register it there.
    1 point
  8. This is an event. Instead use WorldEvent.PotentialSpawns until addSpawn is no longer protected I though I don't think that will happen.
    1 point
  9. Again, that's not what side only does. If you want an event to only be registered on one side, you use the value=Dist.CLIENT parameter in the @EventBusSubscriber annotation. Also, its not called SideOnly any more. Its OnlyIn now. .
    1 point
  10. Uh... public abstract class MobEntity extends LivingEntity { //... public final GoalSelector goalSelector; and protected void addSpawn(EntityClassification type, Biome.SpawnListEntry spawnListEntry) { //... } Forge build 1.14.4-28.0.45
    1 point
  11. It doesn't help you. It's meant to help you be compatible with other mods. The best way to do what you are trying to do I think would be to cast the player to ServerPlayerEntity then get the PlayerInteractionManager field(interactionManager) and call PlayerInteractionManager#tryHarvestBlock(BlockPos)
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.